harbor/static/resources/js/services/destination/services.list-destination.js

23 lines
479 B
JavaScript
Raw Normal View History

(function() {
'use strict';
angular
.module('harbor.services.destination')
.factory('ListDestinationService', ListDestinationService);
ListDestinationService.$inject = ['$http'];
function ListDestinationService($http) {
return listDestination;
function listDestination(targetId, name) {
return $http
.get('/api/targets/' + targetId, {
'params': {
'name': name
}
});
}
}
})()