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