summaryrefslogtreecommitdiff
path: root/lib/web/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/utils.js')
-rw-r--r--lib/web/utils.js7
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
+})