From 33be03aff5bae1f20a0bf987ac232eba1fdb2830 Mon Sep 17 00:00:00 2001 From: Peter Beverloo Date: Sun, 14 Apr 2024 22:01:08 +0100 Subject: [PATCH] s/GET/POST/ --- app/api/webhook/twilio/inbound/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/webhook/twilio/inbound/route.ts b/app/api/webhook/twilio/inbound/route.ts index 457122d5..e19a286a 100644 --- a/app/api/webhook/twilio/inbound/route.ts +++ b/app/api/webhook/twilio/inbound/route.ts @@ -12,7 +12,7 @@ import { authenticateAndRecordTwilioRequest } from '../authenticateAndRecordTwil * Webhook invoked when an inbound message has been received over one of our communication channels, * generally either SMS or WhatsApp. An immediate response is expected. */ -export async function GET(request: NextRequest) { +export async function POST(request: NextRequest) { const body = await authenticateAndRecordTwilioRequest(request, TwilioWebhookEndpoint.Inbound); // TODO: Do something with the `body`