Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
Matteo Scandolo | bd2e5cd | 2016-04-12 11:59:29 -0700 | [diff] [blame] | 3 | |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 4 | angular.module('xos.helpers') |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 5 | /** |
| 6 | * @ngdoc service |
| 7 | * @name xos.helpers.Users |
Matteo Scandolo | 71378f9 | 2016-04-28 14:16:45 -0700 | [diff] [blame] | 8 | * @description Angular resource to fetch /api/core/users/:user_id/ |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 9 | **/ |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 10 | .service('Users', function($resource){ |
Matteo Scandolo | 71378f9 | 2016-04-28 14:16:45 -0700 | [diff] [blame] | 11 | return $resource('/api/core/users/:user_id/', { user_id: '@id' }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 12 | }) |
| 13 | })(); |