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

20 lines
370 B
JavaScript
Raw Normal View History

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