From 9dab2cb2393020d3c52c7a6e2633f60fd60ffcaf Mon Sep 17 00:00:00 2001 From: Waris Date: Sun, 22 Dec 2024 17:52:29 +0530 Subject: [PATCH] fix: changing create-customer to post instead of get --- app/api/dodopayments-billing/create-customer/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/dodopayments-billing/create-customer/route.ts b/app/api/dodopayments-billing/create-customer/route.ts index a5910e5..a353396 100644 --- a/app/api/dodopayments-billing/create-customer/route.ts +++ b/app/api/dodopayments-billing/create-customer/route.ts @@ -6,7 +6,7 @@ import { headers } from "next/headers"; import { NextResponse } from "next/server"; import { z } from "zod"; -export async function GET(request: Request) { +export async function POST(request: Request) { try { const res = await auth.api.getSession({ headers: await headers(),