cal.pub0.org/packages/trpc/server/procedures/publicProcedure.ts

8 lines
307 B
TypeScript
Raw Normal View History

2023-08-03 15:22:38 +00:00
import captureErrorsMiddleware from "../middlewares/captureErrorsMiddleware";
import perfMiddleware from "../middlewares/perfMiddleware";
import { tRPCContext } from "../trpc";
2023-08-03 15:22:38 +00:00
const publicProcedure = tRPCContext.procedure.use(captureErrorsMiddleware).use(perfMiddleware);
export default publicProcedure;