Matteo Scandolo | b4fdd0a | 2016-05-09 15:27:47 -0700 | [diff] [blame] | 1 | (function() { |
2 | 'use strict'; | ||||
3 | |||||
4 | angular.module('xos.helpers') | ||||
5 | /** | ||||
6 | * @ngdoc service | ||||
7 | * @name xos.helpers.Networks | ||||
8 | * @description Angular resource to fetch /api/core/networks/:id/ | ||||
9 | **/ | ||||
10 | .service('Networks', function($resource){ | ||||
11 | return $resource('/api/core/networks/:id/', { id: '@id' }, { | ||||
12 | update: { method: 'PUT' } | ||||
13 | }); | ||||
14 | }) | ||||
15 | })(); |