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

View File

@@ -118,7 +118,7 @@ function process(req, res, next) {
async function start() {
assert(gHttpServer === null, 'Already started');
const json = middleware.json({ strict: true });
const json = express.json({ strict: true });
// we protect container create as the app/admin can otherwise mount random paths (like the ghost file)
// protected other paths is done by preventing install/exec access of apps using docker addon