mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 22:09:41 +02:00
8 lines
234 B
TypeScript
8 lines
234 B
TypeScript
|
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;
|
||
|
}
|