mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Allow posting new note with content
Signed-off-by: Dustin Frisch <fooker@lab.sh>
This commit is contained in:
parent
a8fa888317
commit
f47601857e
3 changed files with 13 additions and 1 deletions
|
@ -7,3 +7,10 @@ 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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue