projects
/
YouAndWeb_TwoToc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
TwoToc code
[YouAndWeb_TwoToc]
/
client
/
components
/
auth
/
user.service.js
1
'use strict';
2
3
angular.module('dashboardApp')
4
.factory('User', function ($resource) {
5
return $resource('/api/users/:id/:controller', {
6
id: '@_id'
7
},
8
{
9
changePassword: {
10
method: 'PUT',
11
params: {
12
controller:'password'
13
}
14
},
15
get: {
16
method: 'GET',
17
params: {
18
id:'me'
19
}
20
}
21
});
22
});