From f47601857e9774731d5997f5c3b3256cf8bb623b Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Thu, 11 Jan 2018 00:51:22 +0100 Subject: Allow posting new note with content Signed-off-by: Dustin Frisch --- lib/web/utils.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/web/utils.js') 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 +}) -- cgit v1.2.3