Up json request data limit to 500kb (images)

This commit is contained in:
Daniel Lugo 2021-07-26 13:48:59 -04:00
parent 41a12ba78c
commit 49f279b6a7

View file

@ -311,7 +311,7 @@ const server = program => {
}) })
) )
app.use(bodyParser.urlencoded({ extended: 'true' })) app.use(bodyParser.urlencoded({ extended: 'true' }))
app.use(bodyParser.json()) app.use(bodyParser.json({ limit: '500kb' }))
app.use(bodyParser.json({ type: 'application/vnd.api+json' })) app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
app.use(methodOverride()) app.use(methodOverride())
// WARNING // WARNING