Skip to content

Open source alternatives to paid SaaS apps: Notion, Slack, Auth0, Vercel and more. Curated list with licenses and GitHub stars.

Remove unrelated code files

Anil Chandra Naidu Matchac4ae93f8efb4
diff --git a/src/app/api/stripe/webhook/route.js b/src/app/api/stripe/webhook/route.js
deleted file mode 100644
index f3a3e1a..0000000
--- a/src/app/api/stripe/webhook/route.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { NextResponse } from "next/server";
-import { headers } from "next/headers";
-import { BillingService } from "@/lib/services/billing";
-
-export async function POST(req) {
- try {
- const body = await req.text();
- const signature = (await headers()).get("Stripe-Signature");
-
- const result = await BillingService.handleWebhook(body, signature);
- return NextResponse.json(result);
- } catch (error) {
- console.error("[STRIPE_WEBHOOK]", error);
- return new NextResponse(`Webhook Error: ${error.message}`, { status: 400 });
- }
-}