mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 18:18:04 +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
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
})(); |