1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00
portainer/app/react/docker/services/webhooks/build-url.ts

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

5 lines
138 B
TypeScript
Raw Normal View History

export function buildUrl(webhookId?: string) {
const baseUrl = '/webhooks';
return webhookId ? `${baseUrl}/${webhookId}` : baseUrl;
}