mirror of https://github.com/portainer/portainer
13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { EnvironmentId } from '@/react/portainer/environments/types';
|
|
|
|
import { buildDockerProxyUrl } from '../../proxy/queries/buildDockerProxyUrl';
|
|
import { ServiceId } from '../types';
|
|
|
|
export function buildUrl(
|
|
endpointId: EnvironmentId,
|
|
id?: ServiceId,
|
|
action?: string
|
|
) {
|
|
return buildDockerProxyUrl(endpointId, 'services', id, action);
|
|
}
|