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" }); }