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