Skip to content

Commit

Permalink
Merge pull request #12 from prakashdivyy/fix/body-parser-options
Browse files Browse the repository at this point in the history
Fix bodyParser options
  • Loading branch information
prakashdivyy authored Apr 22, 2019
2 parents b04ecb8 + b0ca314 commit 35c1de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module.exports = function (merapi) {
}

app.use(bodyParser.json(bodyParserOptions));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.raw({ type: "*/*" }));
app.use(bodyParser.urlencoded(Object.assign({ extended: true }, bodyParserOptions)));
app.use(bodyParser.raw(Object.assign({ type: "*/*" }, bodyParserOptions)));

let isRoutesInMiddleware = false;

Expand Down

0 comments on commit 35c1de3

Please sign in to comment.