mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +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);
|
|
}
|
|
|
|
}
|
|
|
|
})(); |