diff --git a/docs/2.guide/2.directory-structure/1.server.md b/docs/2.guide/2.directory-structure/1.server.md index 2dac8d9f86..95544572a3 100644 --- a/docs/2.guide/2.directory-structure/1.server.md +++ b/docs/2.guide/2.directory-structure/1.server.md @@ -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