1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/react/portainer/webhooks/build-url.ts

11 lines
171 B
TypeScript

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