Skip to content

Commit 4222e99

Browse files
Update content/middlewares.md
Co-authored-by: Kamil Mysliwiec <[email protected]>
1 parent cb6b674 commit 4222e99

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
@@ -242,4 +242,4 @@ app.use(logger);
242242
await app.listen(3000);
243243
```
244244

245-
> info **Hint** Accessing the DI container in a global middleware is not possible. You can use a [functional middleware](middleware#functional-middleware) instead when using `app.use()`. Alternatively, you can use a class middleware and consume it with `.forRoutes('*')`.
245+
> info **Hint** Accessing the DI container in a global middleware is not possible. You can use a [functional middleware](middleware#functional-middleware) instead when using `app.use()`. Alternatively, you can use a class middleware and consume it with `.forRoutes('*')` within the `AppModule` (or any other module).

0 commit comments

Comments
 (0)