mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
refactor(app.js): Extract urlencodedParser to utils module
This commit is contained in:
parent
dee77c459a
commit
9f1f16c8e3
2 changed files with 10 additions and 6 deletions
9
lib/web/utils.js
Normal file
9
lib/web/utils.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict'
|
||||
|
||||
const bodyParser = require('body-parser')
|
||||
|
||||
// create application/x-www-form-urlencoded parser
|
||||
exports.urlencodedParser = bodyParser.urlencoded({
|
||||
extended: false,
|
||||
limit: 1024 * 1024 * 10 // 10 mb
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue