mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 03:30:51 +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
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
})() |