wip
This commit is contained in:
13
apps/server/src/router/trpc.ts
Normal file
13
apps/server/src/router/trpc.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { initTRPC } from '@trpc/server';
|
||||
import superjson from 'superjson';
|
||||
import { Context } from './context';
|
||||
|
||||
const t = initTRPC.context<Context>().create({
|
||||
transformer: superjson,
|
||||
errorFormatter({ shape }) {
|
||||
return shape;
|
||||
},
|
||||
});
|
||||
|
||||
export const router = t.router;
|
||||
export const publicProcedure = t.procedure;
|
||||
Reference in New Issue
Block a user