mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 02:58:05 +01:00
23 lines
479 B
JavaScript
23 lines
479 B
JavaScript
(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
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
})() |