cal.pub0.org/packages/trpc/server/routers/public.ts

6 lines
150 B
TypeScript

import { t, publicProcedure } from "../trpc";
export const publicRouter = t.router({
session: publicProcedure.query(({ ctx }) => ctx.session),
});