blob: cb93866451d767c2c33db1530b46634df5757296 [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 Scandolo71378f92016-04-28 14:16:45 -07008 * @description Angular resource to fetch /api/core/users/:user_id/
Matteo Scandolo582cc812016-04-13 17:23:28 -07009 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070010 .service('Users', function($resource){
Matteo Scandolo71378f92016-04-28 14:16:45 -070011 return $resource('/api/core/users/:user_id/', { user_id: '@id' });
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070012 })
13})();