portainer/app/react/docker/proxy/queries/nodes/build-url.ts

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
);
}