mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 22:24:14 +01:00
20 lines
476 B
JavaScript
20 lines
476 B
JavaScript
|
(function() {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.services.project.member')
|
||
|
.factory('CurrentProjectMemberService', CurrentProjectMemberService);
|
||
|
|
||
|
CurrentProjectMemberService.$inject = ['$http', '$log'];
|
||
|
|
||
|
function CurrentProjectMemberService($http, $log) {
|
||
|
return currentProjectMember;
|
||
|
|
||
|
function currentProjectMember(projectId) {
|
||
|
return $http
|
||
|
.get('/api/projects/' + projectId + '/members/current');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
})();
|