harbor/static/resources/js/services/replication-job/services.list-replication-job.js

26 lines
594 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, status) {
return $http
.get('/api/jobs/replication/', {
'params': {
'policy_id': policyId,
'repository': repository,
'status': status
}
});
}
}
})();