blob: 0895a9936c44b993e16e14f5d4d27a6a7760498d [file] [log] [blame]
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07001(function() {
2 'use strict';
Matteo Scandoloc7987cd2016-04-12 11:38:40 -07003
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -07004 angular.module('xos.helpers')
Matteo Scandolo582cc812016-04-13 17:23:28 -07005 /**
6 * @ngdoc service
7 * @name xos.helpers.Truckroll-Collection
8 * @description Angular resource to fetch /api/tenant/truckroll/:truckroll_id/
9 **/
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070010 .service('Truckroll-Collection', function($resource){
Matteo Scandolo67e79cb2016-04-29 09:14:58 -070011 return $resource('/api/tenant/truckroll/:truckroll_id/', { truckroll_id: '@id' }, {
12 update: { method: 'PUT' }
13 });
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070014 })
15})();