mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-12 13:35:00 +01:00
24 lines
439 B
JavaScript
24 lines
439 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.user')
|
|
.factory('ListUserService', ListUserService);
|
|
|
|
ListUserService.$inject = ['$http', '$log'];
|
|
|
|
function ListUserService($http, $log) {
|
|
|
|
return listUser;
|
|
|
|
function listUser(username) {
|
|
return $http
|
|
.get('/api/users', {
|
|
'params' : {
|
|
'username': username
|
|
}
|
|
});
|
|
}
|
|
}
|
|
})(); |