mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-12 15:55:53 -05:00
7b9f9a487b
Signed-off-by: David Mehren <git@herrmehren.de>
14 lines
378 B
TypeScript
14 lines
378 B
TypeScript
import bodyParser from 'body-parser'
|
|
// create application/x-www-form-urlencoded parser
|
|
|
|
export const urlencodedParser = bodyParser.urlencoded({
|
|
extended: false,
|
|
limit: 1024 * 1024 * 10 // 10 mb
|
|
})
|
|
|
|
// create text/markdown parser
|
|
export const markdownParser = bodyParser.text({
|
|
inflate: true,
|
|
type: ['text/plain', 'text/markdown'],
|
|
limit: 1024 * 1024 * 10 // 10 mb
|
|
})
|