mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 11:41:54 +01:00
27 lines
598 B
JavaScript
27 lines
598 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.replication.policy')
|
|
.factory('ListReplicationPolicyService', ListReplicationPolicyService);
|
|
|
|
ListReplicationPolicyService.$inject = ['$http'];
|
|
|
|
function ListReplicationPolicyService($http) {
|
|
|
|
return listReplicationPolicy;
|
|
|
|
function listReplicationPolicy(policyId, projectId, name) {
|
|
return $http
|
|
.get('/api/policies/replication/' + policyId, {
|
|
'params': {
|
|
'project_id': projectId,
|
|
'name': name
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |