diff options
author | Christoph (Sheogorath) Kern | 2018-01-20 19:45:41 +0100 |
---|---|---|
committer | GitHub | 2018-01-20 19:45:41 +0100 |
commit | 268c81a3233c1407d6f6cf675e51bed97d8f4615 (patch) | |
tree | 62e8f8125b89844dfa97acfa534264be30e82b36 /lib/web/utils.js | |
parent | 5d9a2c35698eeb7c29dc0b0b600dad4c6726528a (diff) | |
parent | f47601857e9774731d5997f5c3b3256cf8bb623b (diff) |
Merge pull request #673 from fooker/master
Allow posting new note with content
Diffstat (limited to '')
-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 +}) |