From b64db27b2b5dd3ee3943c26ff3a2dc8dc5b29bc7 Mon Sep 17 00:00:00 2001 From: Wesley Souza | Neo Date: Tue, 3 Dec 2024 15:56:20 -0300 Subject: [PATCH] fix(api route to clerk webhooks): :ambulance: fixed the method name --- app/api/webhooks/clerk/route.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/api/webhooks/clerk/route.ts b/app/api/webhooks/clerk/route.ts index 8bb5462..3cd7346 100644 --- a/app/api/webhooks/clerk/route.ts +++ b/app/api/webhooks/clerk/route.ts @@ -1,10 +1,7 @@ import type { NextApiRequest, NextApiResponse } from "next"; import { clerkClient } from "@clerk/nextjs/server"; -export default async function handler( - req: NextApiRequest, - res: NextApiResponse, -) { +export default async function POST(req: NextApiRequest, res: NextApiResponse) { if (req.method !== "POST") { return res.status(405).json({ error: "Method not allowed" }); }