mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
refactor(docker): remove EndpointProvider from exec [EE-6462] (#10840)
This commit is contained in:
parent
76e49ed9a8
commit
de473fc10e
3 changed files with 6 additions and 7 deletions
|
@ -3,13 +3,12 @@ import { genericHandler } from './response/handlers';
|
|||
angular.module('portainer.docker').factory('Exec', [
|
||||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
function ExecFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
function ExecFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/exec/:id/:action',
|
||||
API_ENDPOINT_ENDPOINTS + '/:environmentId/docker/exec/:id/:action',
|
||||
{
|
||||
endpointId: EndpointProvider.endpointID,
|
||||
environmentId: '@environmentId',
|
||||
},
|
||||
{
|
||||
resize: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue