-
In the docs (e.g. merging routers) routers are merged with a const appRouter = createRouter()
.merge('users.', users) // prefix user procedures with "users."
.merge('posts.', posts) // prefix poosts procedures with "posts." Is there a reason for not using I haven't tried to do API Gateway path mapping with dots yet, but based on the docs it looks not possible. Will we be able to use slashes for this use case? By that I mean const appRouter = createRouter()
.merge('users/', users)
.merge('posts/', posts) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are able to name your tRPC-router I actually had this originally; the reason I changed this myself is that you see the full path in the inspector rather than just the end part. Note: I have not tested |
Beta Was this translation helpful? Give feedback.
You are able to name your tRPC-router
[...trpc].tsx
and use/
instead.I actually had this originally; the reason I changed this myself is that you see the full path in the inspector rather than just the end part.
Note: I have not tested
/
-paths since adding batching support.