Matteo Scandolo | 3fa9871 | 2016-04-26 11:44:36 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
| 3 | |
| 4 | angular.module('xos.helpers') |
| 5 | /** |
| 6 | * @ngdoc service |
| 7 | * @name xos.helpers.Instances |
Matteo Scandolo | 4fc06db | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 8 | * @description Angular resource to fetch /api/core/instances/:id/ |
Matteo Scandolo | 3fa9871 | 2016-04-26 11:44:36 -0700 | [diff] [blame] | 9 | **/ |
| 10 | .service('Instances', function($resource){ |
Matteo Scandolo | 4fc06db | 2016-04-29 09:14:58 -0700 | [diff] [blame] | 11 | return $resource('/api/core/instances/:id/', { id: '@id' }, { |
| 12 | update: { method: 'PUT' } |
| 13 | }); |
Matteo Scandolo | 3fa9871 | 2016-04-26 11:44:36 -0700 | [diff] [blame] | 14 | }) |
| 15 | })(); |