mirror of https://github.com/portainer/portainer
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
![]() |
import { buildStackUrl } from '../buildUrl';
|
||
|
|
||
|
export function buildCreateUrl(
|
||
|
stackType: 'kubernetes',
|
||
|
method: 'repository' | 'url' | 'string'
|
||
|
): string;
|
||
|
|
||
|
export function buildCreateUrl(
|
||
|
stackType: 'swarm' | 'standalone',
|
||
|
method: 'repository' | 'string' | 'file'
|
||
|
): string;
|
||
|
export function buildCreateUrl(stackType: string, method: string) {
|
||
|
return buildStackUrl(undefined, `create/${stackType}/${method}`);
|
||
|
}
|