blob: bf2e387ff58458e8b57854a8020732fef5bde13b [file] [log] [blame]
Matteo Scandolod5f3d052016-05-02 15:29:37 -07001(function() {
2 'use strict';
3
4 angular.module('xos.helpers')
5 /**
6 * @ngdoc service
7 * @name xos.helpers.Nodes
8 * @description Angular resource to fetch /api/core/nodes/:id/
9 **/
10 .service('Nodes', function($resource){
11 return $resource('/api/core/nodes/:id/', { id: '@id' }, {
12 update: { method: 'PUT' }
13 });
14 })
15})();