Skip to content

Commit

Permalink
fix(api route to clerk webhooks): 🚑 fixed the method name
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Dec 3, 2024
1 parent 7282321 commit b64db27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/api/webhooks/clerk/route.ts
Original file line number Diff line number Diff line change
@@ -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" });
}
Expand Down

0 comments on commit b64db27

Please sign in to comment.