mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
* feat(volume-creation): add plugin support * feat(plugins): only use systemInfo to retrieve plugins when API version < 1.25 * refactor(createVolume): remove unused dependencies
9 lines
401 B
JavaScript
9 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 }
|
|
});
|
|
}]);
|