1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 22:09:41 +02:00
portainer/app/react/edge/edge-stacks/queries/buildUrl.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
234 B
TypeScript
Raw Normal View History

import { EdgeStack } from '../types';
export function buildUrl(id?: EdgeStack['Id'], action?: string) {
const baseUrl = '/edge_stacks';
const url = id ? `${baseUrl}/${id}` : baseUrl;
return action ? `${url}/${action}` : url;
}