Files
portainer--portainer/app/react/portainer/webhooks/build-url.ts
T
2026-07-13 12:08:39 +08:00

12 lines
171 B
TypeScript

import { Webhook } from './types';
export function buildUrl(id?: Webhook['Id']) {
const url = '/webhooks';
if (id) {
return `${url}/${id}`;
}
return url;
}