summaryrefslogtreecommitdiff
path: root/lib/web/utils.js
blob: c90165235e4f959430271aefb1f20f018c8c2c00 (plain)
1
2
3
4
5
6
7
8
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
})