10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
![]() |
import { Webhook } from 'models'
|
||
|
import { sendRequest } from 'utils'
|
||
|
|
||
|
export const saveWebhook = (webhookId: string, webhook: Partial<Webhook>) =>
|
||
|
sendRequest<{ webhook: Webhook }>({
|
||
|
method: 'PUT',
|
||
|
url: `/api/webhooks/${webhookId}`,
|
||
|
body: webhook,
|
||
|
})
|