mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 02:58:05 +01:00
27 lines
647 B
JavaScript
27 lines
647 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.project.member')
|
|
.service('ListProjectMemberService', ListProjectMemberService);
|
|
|
|
ListProjectMemberService.$inject = ['$http', '$log'];
|
|
|
|
function ListProjectMemberService($http, $log) {
|
|
|
|
return ListProjectMember;
|
|
|
|
function ListProjectMember(projectId, queryParams) {
|
|
console.log('project_member project_id:' + projectId);
|
|
var username = queryParams.username;
|
|
return $http
|
|
.get('/api/projects/' + projectId + '/members', {
|
|
params: {
|
|
'username': username
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
})(); |