harbor/static/resources/js/services/project-member/services.delete-project-member.js

22 lines
491 B
JavaScript
Raw Normal View History

(function() {
'use strict';
angular
.module('harbor.services.project.member')
.factory('DeleteProjectMemberService', DeleteProjectMemberService);
DeleteProjectMemberService.$inject = ['$http', '$log'];
function DeleteProjectMemberService($http, $log) {
return DeleteProjectMember;
function DeleteProjectMember(projectId, userId) {
return $http
.delete('/api/projects/' + projectId + '/members/' + userId);
}
}
})();