mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 10:38:00 +01:00
22 lines
387 B
JavaScript
22 lines
387 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.user')
|
|
.factory('DeleteUserService', DeleteUserService);
|
|
|
|
DeleteUserService.$inject = ['$http', '$log'];
|
|
|
|
function DeleteUserService($http, $log) {
|
|
|
|
return DeleteUser;
|
|
|
|
function DeleteUser(userId) {
|
|
return $http
|
|
.delete('/api/users/' + userId);
|
|
}
|
|
|
|
}
|
|
|
|
})(); |