mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
11 lines
171 B
TypeScript
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;
|
|
}
|