mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-10 04:31:50 +01:00
19 lines
449 B
JavaScript
19 lines
449 B
JavaScript
|
(function() {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.services.destination')
|
||
|
.factory('ListDestinationPolicyService', ListDestinationPolicyService);
|
||
|
|
||
|
ListDestinationPolicyService.$inject = ['$http'];
|
||
|
|
||
|
function ListDestinationPolicyService($http) {
|
||
|
return listDestinationPolicy;
|
||
|
function listDestinationPolicy(targetId) {
|
||
|
return $http
|
||
|
.get('/api/targets/' + targetId + '/policies/');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
})();
|