Here is a Nuxt route written the way the docs recommend, and the code that calls it: // server/api/users/[id]. get. ts import { z } from ' zod ' export default defineEventHandler ( async ( event ) => { const { id } = await getValidatedRouterParams ( event , z .
Source: [Dev.to](https://dev.to/yoshinoriishii/nuxt-server-routes-with-hono-rpc-style-type-safety-no-rewrite-205k)