Allow posting new note with content

Signed-off-by: Dustin Frisch <fooker@lab.sh>
This commit is contained in:
Dustin Frisch 2018-01-11 00:51:22 +01:00
parent a8fa888317
commit f47601857e
No known key found for this signature in database
GPG key ID: B4C3BF012D9B26BE
3 changed files with 13 additions and 1 deletions

View file

@ -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
})