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.tsexport const router = {
user: {
get: ...,
delte: ...,
update: ...,
}
}
clientawait api.user.get().ok()