mirror of https://github.com/portainer/portainer
16 lines
341 B
TypeScript
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
|
|
);
|
|
}
|