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