Skip to content

Commit 185a8c3

Browse files
sshevlyaginjmcdo29
andauthored
Update content/middlewares.md
Accepting suggestion Co-authored-by: Jay McDoniel <[email protected]>
1 parent 98eb907 commit 185a8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/middlewares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class AppModule {
122122

123123
> info **Hint** The `configure()` method can be made asynchronous using `async/await` (e.g., you can `await` completion of an asynchronous operation inside the `configure()` method body).
124124
125-
> warning **Warning** When using the `express` adapter, the NestJS app will register `json` and `urlencoded` from the package `body-parser` by default. This means if you want to customize that middleware per route, you need to turn off the global middleware by setting the `bodyParser` flag to `false` when creating the application with `NestFactory.create()`.
125+
> warning **Warning** When using the `express` adapter, the NestJS app will register `json` and `urlencoded` from the package `body-parser` by default. This means if you want to customize that middleware via the `MiddlewareConsumer`, you need to turn off the global middleware by setting the `bodyParser` flag to `false` when creating the application with `NestFactory.create()`.
126126
127127
#### Route wildcards
128128

0 commit comments

Comments
 (0)