mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 10:46:30 -05:00
57675265fc
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
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
|
|
})
|