Fix audit #14 (body size limits), #17 (duplicate session_id), #22 (unused import)
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 2m53s
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 2m53s
This commit is contained in:
parent
6cc30db5c6
commit
09c6feb06e
9 changed files with 36 additions and 10 deletions
|
|
@ -99,8 +99,9 @@ app.use("/v1/recover", recoverRouter);
|
|||
app.use("/v1/billing", billingRouter);
|
||||
app.use("/v1/email-change", emailChangeRouter);
|
||||
|
||||
// Authenticated routes
|
||||
app.use("/v1/convert", authMiddleware, usageMiddleware, pdfRateLimitMiddleware, convertRouter);
|
||||
// Authenticated routes — conversion routes get tighter body limits (500KB)
|
||||
const convertBodyLimit = express.json({ limit: "500kb" });
|
||||
app.use("/v1/convert", convertBodyLimit, authMiddleware, usageMiddleware, pdfRateLimitMiddleware, convertRouter);
|
||||
app.use("/v1/templates", authMiddleware, usageMiddleware, templatesRouter);
|
||||
|
||||
// Admin: usage stats (admin key required)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue