blob: 8be0fdd0351f9ef763cb9f9bbce4f07d0ed0969b [file] [log] [blame]
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07001(function() {
2 'use strict';
Matteo Scandolobd2e5cd2016-04-12 11:59:29 -07003
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07004 angular.module('xos.helpers')
Matteo Scandolo582cc812016-04-13 17:23:28 -07005 /**
6 * @ngdoc service
7 * @name xos.helpers.Users
Matteo Scandolo67e79cb2016-04-29 09:14:58 -07008 * @description Angular resource to fetch /api/core/users/:id/
Matteo Scandolo582cc812016-04-13 17:23:28 -07009 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070010 .service('Users', function($resource){
Matteo Scandolo67e79cb2016-04-29 09:14:58 -070011 return $resource('/api/core/users/:id/', { id: '@id' }, {
12 update: { method: 'PUT' }
13 });
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070014 })
15})();