feat(editor): ✨ Restore published version button
Had to migrate webhooks into a standalone table
This commit is contained in:
9
apps/builder/services/webhook.ts
Normal file
9
apps/builder/services/webhook.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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,
|
||||
})
|
Reference in New Issue
Block a user