blob: 57e5537d413b361cf5e60eac65e01ca0932ad70f [file] [log] [blame]
Matteo Scandolo3fa98712016-04-26 11:44:36 -07001(function() {
2 'use strict';
3
4 angular.module('xos.helpers')
5 /**
6 * @ngdoc service
7 * @name xos.helpers.Instances
Matteo Scandolo9dd14002016-04-28 14:16:45 -07008 * @description Angular resource to fetch /api/core/instances/:instance_id/
Matteo Scandolo3fa98712016-04-26 11:44:36 -07009 **/
10 .service('Instances', function($resource){
Matteo Scandolo9dd14002016-04-28 14:16:45 -070011 return $resource('/api/core/instances/:instance_id/', { instance_id: '@id' });
Matteo Scandolo3fa98712016-04-26 11:44:36 -070012 })
13})();