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/portainer/rest/resourceControl.js

18 lines
554 B

angular.module('portainer.app').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', ignoreLoadingBar: true },
get: { method: 'GET', params: { id: '@id' } },
update: { method: 'PUT', params: { id: '@id' } },
remove: { method: 'DELETE', params: { id: '@id' } },
}
);
},
]);