Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
Matteo Scandolo | c7987cd | 2016-04-12 11:38:40 -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 |
Matteo Scandolo | 280dcd3 | 2016-05-16 09:59:38 -0700 | [diff] [blame] | 7 | * @name xos.helpers.Truckroll |
| 8 | * @description Angular resource to fetch /api/tenant/truckroll/:id/ |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 9 | **/ |
Matteo Scandolo | 280dcd3 | 2016-05-16 09:59:38 -0700 | [diff] [blame] | 10 | .service('Truckroll', function($resource){ |
| 11 | return $resource('/api/tenant/truckroll/:id/', { id: '@id' }, { |
Matteo Scandolo | 67e79cb | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 12 | update: { method: 'PUT' } |
| 13 | }); |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 14 | }) |
Matteo Scandolo | 280dcd3 | 2016-05-16 09:59:38 -0700 | [diff] [blame] | 15 | })(); |