trpc.ts 236 B

123456789
  1. import { initTRPC } from '@trpc/server';
  2. /**
  3. * Initialization of tRPC backend
  4. * Should be done only once per backend!
  5. */
  6. export const t = initTRPC.create();
  7. export const publicProcedure = t.procedure
  8. export const router = t.router