Files
portainer/app/react/docker/proxy/queries/nodes/build-url.ts
T
Chaim Lev-Ari 8ab739adfd
Test / test-client (push) Has been cancelled
Test / test-server (push) Has been cancelled
refactor(docker/services): convert service tasks table to react [EE-4337]
close [EE-4337]
2023-08-28 14:40:58 +02:00

16 lines
341 B
TypeScript

import { EnvironmentId } from '@/react/portainer/environments/types';
import { buildUrl as buildProxyUrl } from '../build-url';
export function buildUrl(
environmentId: EnvironmentId,
action?: string,
subAction = ''
) {
return buildProxyUrl(
environmentId,
'nodes',
subAction ? `${action}/${subAction}` : action
);
}