Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
Matteo Scandolo | 4b3bf7f | 2016-04-12 11:38:40 -0700 | [diff] [blame] | 3 | |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 4 | angular.module('xos.helpers') |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 5 | /** |
| 6 | * @ngdoc service |
| 7 | * @name xos.helpers.Truckroll-Collection |
| 8 | * @description Angular resource to fetch /api/tenant/truckroll/:truckroll_id/ |
| 9 | **/ |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 10 | .service('Truckroll-Collection', function($resource){ |
| 11 | return $resource('/api/tenant/truckroll/:truckroll_id/', { truckroll_id: '@id' }); |
| 12 | }) |
| 13 | })(); |