mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
|
import { Stack } from '../types';
|
||
|
|
||
|
export function buildStackUrl(id?: Stack['Id'], action?: string) {
|
||
|
const baseUrl = '/stacks';
|
||
|
const url = id ? `${baseUrl}/${id}` : baseUrl;
|
||
|
return action ? `${url}/${action}` : url;
|
||
|
}
|