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 | 9dd1400 | 2016-04-28 14:16:45 -0700 | [diff] [blame] | 8 | * @description Angular resource to fetch /api/core/instances/:instance_id/ |
Matteo Scandolo | 3fa9871 | 2016-04-26 11:44:36 -0700 | [diff] [blame] | 9 | **/ |
| 10 | .service('Instances', function($resource){ |
Matteo Scandolo | 9dd1400 | 2016-04-28 14:16:45 -0700 | [diff] [blame] | 11 | return $resource('/api/core/instances/:instance_id/', { instance_id: '@id' }); |
Matteo Scandolo | 3fa9871 | 2016-04-26 11:44:36 -0700 | [diff] [blame] | 12 | }) |
| 13 | })(); |