harbor/static/resources/js/services/user/services.list-user.js

24 lines
439 B
JavaScript
Raw Normal View History

(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
}
});
}
}
})();