mirror of https://github.com/portainer/portainer
10 lines
401 B
JavaScript
10 lines
401 B
JavaScript
angular.module('portainer.rest')
|
|
.factory('Plugin', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function PluginFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
|
'use strict';
|
|
return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/plugins/:id/:action', {
|
|
endpointId: EndpointProvider.endpointID
|
|
}, {
|
|
query: { method: 'GET', isArray: true }
|
|
});
|
|
}]);
|