Allow posting new note with content
Signed-off-by: Dustin Frisch <fooker@lab.sh>
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user