All services added back.

This commit is contained in:
Gunther Brunner
2014-02-18 20:43:46 +09:00
parent 347d9e9a55
commit ffce3d5beb
6 changed files with 204 additions and 0 deletions

View 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
}