tRPCttRPC
Powered by
john99J
tRPC•3y ago•
4 replies
john99

Can a URL be formatted with dashes, such as "user-list" in the context of trpc?

Can a URL be formatted with dashes, such as "user-list" in the context of trpc?
const appRouter = router({
  userList: publicProcedure.query(async () => {
const appRouter = router({
  userList: publicProcedure.query(async () => {

I'd prefer not to write
router({'user-list'....
router({'user-list'....
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

When using createServerSideHelpers can the context be typed as GetServerSidePropsContext?
denik1981Ddenik1981 / ❓-help
3y ago
Has anyone passed supabase user to the tRPC context in Expo?
Chill GuyCChill Guy / ❓-help
2y ago