23 lines
400 B
JavaScript
23 lines
400 B
JavaScript
'use strict';
|
|
|
|
angular.module('markdownFormatWdiffApp')
|
|
.factory('User', function ($resource) {
|
|
return $resource('/api/users/:id/:controller', {
|
|
id: '@_id'
|
|
},
|
|
{
|
|
changePassword: {
|
|
method: 'PUT',
|
|
params: {
|
|
controller:'password'
|
|
}
|
|
},
|
|
get: {
|
|
method: 'GET',
|
|
params: {
|
|
id:'me'
|
|
}
|
|
}
|
|
});
|
|
});
|