Skip to content

Commit cb6b674

Browse files
committed
docs(middlewares): Add link to functional middlewares
... in the hint in the global middleware section.
1 parent b44045b commit cb6b674

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 need to use a 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('*')`.

0 commit comments

Comments
 (0)