mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +01:00
20 lines
370 B
JavaScript
20 lines
370 B
JavaScript
|
(function() {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.services.user')
|
||
|
.factory('CurrentUserService', CurrentUserService);
|
||
|
|
||
|
CurrentUserService.$inject = ['$http'];
|
||
|
|
||
|
function CurrentUserService($http, $log) {
|
||
|
|
||
|
return CurrentUser;
|
||
|
|
||
|
function CurrentUser() {
|
||
|
return $http
|
||
|
.get('/api/users/current');
|
||
|
}
|
||
|
}
|
||
|
})();
|