mirror of https://github.com/portainer/portainer
11 lines
471 B
JavaScript
11 lines
471 B
JavaScript
angular.module('portainer.rest')
|
|
.factory('ResourceControl', ['$resource', 'API_ENDPOINT_RESOURCE_CONTROLS', function ResourceControlFactory($resource, API_ENDPOINT_RESOURCE_CONTROLS) {
|
|
'use strict';
|
|
return $resource(API_ENDPOINT_RESOURCE_CONTROLS + '/:id', {}, {
|
|
create: { method: 'POST' },
|
|
get: { method: 'GET', params: { id: '@id' } },
|
|
update: { method: 'PUT', params: { id: '@id' } },
|
|
remove: { method: 'DELETE', params: { id: '@id'} }
|
|
});
|
|
}]);
|