Skip to content

Commit

Permalink
docs(bodyParser): add documentation for new module option: bodyParsers.
Browse files Browse the repository at this point in the history
ezypeeze committed Jun 12, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e9cb273 commit f8d5739
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,11 @@ The default options are:
// api prefix path
prefix: '/api',

// Request body parser (using expressjs/body-parser: https://github.com/expressjs/body-parser).
// String | Array<String> | Object<{adapter: String, options: Object}> |
// Array<Object<{adapter: String, options: Object}>>
bodyParsers: 'json',

// globalize http error classes (BadRequestError, NotFoundError, ...)
httpErrors: true,

0 comments on commit f8d5739

Please sign in to comment.