Skip to content

Commit

Permalink
docs(routing): fx link to h3 object syntax handler (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
samydoesit committed Mar 20, 2024
1 parent cb2d81d commit 90434ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1.guide/2.routing.md
Expand Up @@ -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!**
Expand Down

0 comments on commit 90434ec

Please sign in to comment.