Files
coolify/apps/server/src/router/trpc.ts
Andras Bacsai c445fc0f8a wip
2022-12-12 08:44:23 +01:00

14 lines
321 B
TypeScript

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;