blob: 7af90160eeb6185cb3c2ae3966d625995517d229 [file] [log] [blame]
Matteo Scandolofbd486c2016-04-13 10:19:55 -07001(function() {
2 'use strict';
Matteo Scandolo4b3bf7f2016-04-12 11:38:40 -07003
Matteo Scandolofbd486c2016-04-13 10:19:55 -07004 angular.module('xos.helpers')
Matteo Scandolo717352a2016-04-13 17:23:28 -07005 /**
6 * @ngdoc service
Matteo Scandolob3b03172016-05-16 09:59:38 -07007 * @name xos.helpers.Truckroll
8 * @description Angular resource to fetch /api/tenant/truckroll/:id/
Matteo Scandolo717352a2016-04-13 17:23:28 -07009 **/
Matteo Scandolob3b03172016-05-16 09:59:38 -070010 .service('Truckroll', function($resource){
11 return $resource('/api/tenant/truckroll/:id/', { id: '@id' }, {
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070012 update: { method: 'PUT' }
13 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070014 })
Matteo Scandolob3b03172016-05-16 09:59:38 -070015})();