From 6b7b0566d0a0970ebcc71ef79c26b57858f3433b Mon Sep 17 00:00:00 2001 From: samydoesit Date: Tue, 19 Mar 2024 16:00:26 +0100 Subject: [PATCH] docs(routing): fix dead object syntax event handler link --- docs/1.guide/2.routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1.guide/2.routing.md b/docs/1.guide/2.routing.md index 308f0bd72d..4503a17851 100644 --- a/docs/1.guide/2.routing.md +++ b/docs/1.guide/2.routing.md @@ -175,7 +175,7 @@ export default defineEventHandler((event) => { }) ``` -Middleware in `middleware/` directory are automatically registered for all routes. If you want to register a middleware for a specific route, see [Object Syntax Event Handler](#object-syntax-event-handler). +Middleware in `middleware/` directory are automatically registered for all routes. If you want to register a middleware for a specific route, see [Object Syntax Event Handler](https://h3.unjs.io/guide/event-handler#object-syntax). ::note Returning anything from a middleware will close the request and should be avoided! Any returned value from middleware will be the response and further code will not be executed however **this is not recommended to do!**