make webhook post
This commit is contained in:
@ -19,6 +19,7 @@ export async function sendWebhook<T extends WebhookAction>(action: T, data: Webh
|
||||
try {
|
||||
const response = await fetch(WEBHOOK_ENDPOINT, {
|
||||
body: JSON.stringify(data),
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'x-webhook-action': action
|
||||
},
|
||||
|
Reference in New Issue
Block a user