You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/edge/rest/edge-groups.js

16 lines
522 B

import angular from 'angular';
angular.module('portainer.edge').factory('EdgeGroups', function EdgeGroupsFactory($resource, API_ENDPOINT_EDGE_GROUPS) {
return $resource(
API_ENDPOINT_EDGE_GROUPS + '/:id/:action',
{},
{
create: { method: 'POST', ignoreLoadingBar: true },
query: { method: 'GET', isArray: true },
get: { method: 'GET', params: { id: '@id' } },
update: { method: 'PUT', params: { id: '@Id' } },
remove: { method: 'DELETE', params: { id: '@id' } },
}
);
});