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
@@ -888,7 +888,7 @@ async function start() {
app.set('views', path.join(__dirname, 'oidc_templates'));
app.set('view engine', 'ejs');
const json = middleware.json({ strict: true, limit: '2mb' });
const json = express.json({ strict: true, limit: '2mb' });
function setNoCache(req, res, next) {
res.set('cache-control', 'no-store');
next();