mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 18:48:02 +01:00
22 lines
491 B
JavaScript
22 lines
491 B
JavaScript
(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);
|
|
}
|
|
|
|
}
|
|
|
|
})(); |