mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
15 lines
341 B
TypeScript
15 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
|
|
);
|
|
}
|