cal.pub0.org/apps/web/pages/api/trpc/public/[trpc].ts

5 lines
232 B
TypeScript

import { createNextApiHandler } from "@calcom/trpc/server/createNextApiHandler";
import { publicViewerRouter } from "@calcom/trpc/server/routers/publicViewer/_router";
export default createNextApiHandler(publicViewerRouter, true);