mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 11:53:40 +00:00
f47601857e
Signed-off-by: Dustin Frisch <fooker@lab.sh>
16 lines
387 B
JavaScript
16 lines
387 B
JavaScript
'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
|
|
})
|
|
|
|
// create text/markdown parser
|
|
exports.markdownParser = bodyParser.text({
|
|
inflate: true,
|
|
type: ['text/plain', 'text/markdown'],
|
|
limit: 1024 * 1024 * 10 // 10 mb
|
|
})
|