json middleware is part of Express v4.16.0

This commit is contained in:
Girish Ramakrishnan
2024-07-19 22:11:30 +02:00
parent a6369a7dde
commit 525e48ae59
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ async function initializeExpressSync() {
const REQUEST_TIMEOUT = 60000; // timeout for all requests (see also setTimeout on the httpServer)
const json = middleware.json({ strict: true, limit: QUERY_LIMIT }), // application/json
const json = express.json({ strict: true, limit: QUERY_LIMIT }), // application/json
urlencoded = middleware.urlencoded({ extended: false, limit: QUERY_LIMIT }); // application/x-www-form-urlencoded
app.set('json spaces', 2); // pretty json