1
0
Fork 0
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:
Chaim Lev-Ari 2024-04-11 19:04:58 +03:00 committed by GitHub
parent 76e49ed9a8
commit de473fc10e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 7 deletions

View file

@ -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: {