portainer/app/react/docker/services/queries/build-url.ts

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