Browse Source

change post data body size

master
filesite 8 months ago
parent
commit
d66e9bb4a2
  1. 4
      index.mjs

4
index.mjs

@ -16,9 +16,9 @@ app.disable('x-powered-by'); @@ -16,9 +16,9 @@ app.disable('x-powered-by');
app.use(express.static('public'));
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.urlencoded({ limit: '2mb', extended: false }))
// parse application/json
app.use(bodyParser.json())
app.use(bodyParser.json({ limit: '2mb' }))
app.use('/api', apiRouter);

Loading…
Cancel
Save