Skip to content

Commit

Permalink
Add more information about the parser middleware configuration (strap…
Browse files Browse the repository at this point in the history
…i#7253)

* Add more information about the parser middleware configuration

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>

* fix integer case

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
Signed-off-by: Gil Fernandes <gil.fernandes@onepointltd.com>
  • Loading branch information
derrickmehaffy authored and onepointconsulting committed Aug 13, 2020
1 parent b681a08 commit e117ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/v3.x/concepts/middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ The following middlewares cannot be disabled: responses, router, logger and boom
- `level` (string): Default log level. Default value: `debug`.
- `exposeInContext` (boolean): Expose logger in context so it can be used through `strapi.log.info(‘my log’)`. Default value: `true`.
- `requests` (boolean): Enable or disable requests logs. Default value: `false`.
- `parser`
- `parser` (See [koa-body](https://github.com/dlau/koa-body#options) for more information)
- `enabled`(boolean): Enable or disable parser. Default value: `true`.
- `multipart` (boolean): Enable or disable multipart bodies parsing. Default value: `true`.
- `jsonLimit` (string|integer): The byte (if integer) limit of the JSON body. Default value: `1mb`.
- `formLimit` (string|integer): The byte (if integer) limit of the form body. Default value: `56k`.

::: tip
The session doesn't work with `mongo` as a client. The package that we should use is broken for now.
Expand Down

0 comments on commit e117ebd

Please sign in to comment.