blob: 424c48d975c51dac5a9f52db4ae794e8bb1b3a29 [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
7 * @name xos.helpers.vOLT-Collection
8 * @description Angular resource to fetch /api/tenant/cord/volt/:volt_id/
9 **/
Matteo Scandolofbd486c2016-04-13 10:19:55 -070010 .service('vOLT-Collection', function($resource){
Matteo Scandolo4fc06db2016-04-29 09:14:58 -070011 return $resource('/api/tenant/cord/volt/:volt_id/', { volt_id: '@id' }, {
12 update: { method: 'PUT' }
13 });
Matteo Scandolofbd486c2016-04-13 10:19:55 -070014 })
15})();