This commit is contained in:
Alex Holliday committed 2025-12-02 17:24:42 +00:00
1 parent e0e260be8f
commit d77de3b6bc
2 files changed
+5 -10

No files matched your search

-7
View File
@@ -18,13 +18,6 @@ const createApp = async () => {
const services = await initServices();
const controllers = initControllers(services);
const app = express();
// Stripe webhook requires raw body for signature verification; mount it first
app.post(
"/api/v1/stripe/webhook",
express.raw({ type: "application/json" }) as any,
// Defer to router handler registered later; this preserves raw body
(req, res, next) => next()
);
app.use(express.json());
app.use(cookieParser());
app.use(