logging
This commit is contained in:
1 parent
e0e260be8f
commit
d77de3b6bc
2 files changed
+5
-10
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user