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