mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
docs: add callout for getValidatedRouterParams
(#25057)
This commit is contained in:
parent
840b6b628d
commit
b95163c7ca
@ -158,6 +158,10 @@ export default defineEventHandler((event) => {
|
||||
})
|
||||
```
|
||||
|
||||
::callout{icon="i-ph-lightbulb" color="green"}
|
||||
Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod for runtime and type safety.
|
||||
::
|
||||
|
||||
You can now universally call this API on `/api/hello/nuxt` and get `Hello, nuxt!`.
|
||||
|
||||
### Matching HTTP Method
|
||||
|
Loading…
Reference in New Issue
Block a user