Nesting routes

Nesting is an optional feature for organizing the API.


Not really a recommended approach as it can be hard to maintain. But if you wish you can nest the API as deep as needed.

server.ts
export const router = { user: { get: ..., delte: ..., update: ..., } }
client
await api.user.get().ok()