mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 18:18:04 +01:00
25 lines
556 B
JavaScript
25 lines
556 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.replication.job')
|
|
.factory('ListReplicationJobService', ListReplicationJobService);
|
|
|
|
ListReplicationJobService.$inject = ['$http'];
|
|
|
|
function ListReplicationJobService($http) {
|
|
|
|
return listReplicationJob;
|
|
|
|
function listReplicationJob(policyId, repository) {
|
|
return $http
|
|
.get('/api/jobs/replication/', {
|
|
'params': {
|
|
'policy_id': policyId,
|
|
'repository': repository
|
|
}
|
|
});
|
|
}
|
|
}
|
|
})(); |