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