refactor(app.js): Extract urlencodedParser to utils module
This commit is contained in:
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
|
||||
})
|
||||
Reference in New Issue
Block a user