diff options
author | Dustin Frisch | 2018-01-11 00:51:22 +0100 |
---|---|---|
committer | Dustin Frisch | 2018-01-18 10:41:58 +0100 |
commit | f47601857e9774731d5997f5c3b3256cf8bb623b (patch) | |
tree | 46cbf3dc02ea8a7d8a5b072504bacec0a9d3ab1b /lib/web/utils.js | |
parent | a8fa88831705625e053c7d493a4b2f83b7b2a4a8 (diff) |
Allow posting new note with content
Signed-off-by: Dustin Frisch <fooker@lab.sh>
Diffstat (limited to 'lib/web/utils.js')
-rw-r--r-- | lib/web/utils.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/web/utils.js b/lib/web/utils.js index c9016523..d58294ad 100644 --- a/lib/web/utils.js +++ b/lib/web/utils.js @@ -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 +}) |