1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00
OpenSTF/res/app/components/stf/user/user-service.js
2014-02-18 20:43:46 +09:00

13 lines
252 B
JavaScript

module.exports = function UserServiceFactory($http) {
var userService = {
}
userService.user = (function () {
var userPromise = $http.get('/api/v1/user')
return function () {
return userPromise
}
})()
return userService
}