_jeffh
_jeffh
TtRPC
Created by _jeffh on 6/3/2023 in #❓-help
child router question
let's say we have a monorepo, one server, two client apps (cat and dog). we make one appRouter, like: export const appRouter = t.router({ cat: catRouter, dog: dogRouter }) export type CatRouter = typeof catRouter; export type DogRouter = typeof dogRouter; the cat app should only know about cat routes, dog app only about dog routes by importing the right type. the server will listen for /cat.getCatFood and /dog.getBone. either i want to change the dot to a forward slash so i can simply tell cat app the baseurl is <url>/cat OR tell client, hey, baseUrl is <url> but, you should prefix all calls with "cat." are either possible?
4 replies
TtRPC
Created by _jeffh on 5/29/2023 in #❓-help
Can I get the original type name, instead of the shape, with query?
4 replies