fix: 🐛 fix upload limit not working correctly
This commit is contained in:
parent
dfc3b81466
commit
062ecf406f
@ -10,7 +10,7 @@ import { cleanExpiredNotes, cleanInterval } from "./tasks/deleteExpiredNotes";
|
||||
export const app: Express = express();
|
||||
|
||||
// Enable JSON body parsing
|
||||
app.use(express.json({ limit: "500k" }));
|
||||
app.use(express.json({}));
|
||||
|
||||
// configure logging
|
||||
app.use(
|
||||
|
@ -21,6 +21,7 @@ const getRateLimit = rateLimit({
|
||||
legacyHeaders: false, // Disable the `X-RateLimit-*` headers
|
||||
});
|
||||
|
||||
// notesRoute.use(jsonParser, uploadLimit);
|
||||
notesRoute.use(jsonParser);
|
||||
notesRoute.post("", postRateLimit, postNoteController);
|
||||
notesRoute.get("/:id", getRateLimit, getNoteController);
|
||||
|
Loading…
Reference in New Issue
Block a user