mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 11:41:54 +01:00
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.destination')
|
|
.factory('DeleteDestinationService', DeleteDestinationService);
|
|
|
|
DeleteDestinationService.$inject = ['$http'];
|
|
|
|
function DeleteDestinationService($http) {
|
|
return deleteDestination;
|
|
function deleteDestination(targetId) {
|
|
return $http
|
|
.delete('/api/targets/' + targetId);
|
|
}
|
|
}
|
|
|
|
})(); |