mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
All services added back.
This commit is contained in:
13
res/app/components/stf/user/user-service.js
Normal file
13
res/app/components/stf/user/user-service.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = function UserServiceFactory($http) {
|
||||
var userService = {
|
||||
}
|
||||
|
||||
userService.user = (function () {
|
||||
var userPromise = $http.get('/api/v1/user')
|
||||
return function () {
|
||||
return userPromise
|
||||
}
|
||||
})()
|
||||
|
||||
return userService
|
||||
}
|
||||
Reference in New Issue
Block a user