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

22 lines
387 B
JavaScript
Raw Normal View History

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