harbor/static/resources/js/services/user/services.delete-user.js

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);
}
}
})();