MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / handler

Function handler

src/app/api/trpc/[trpc]/route.ts:4–10  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

2import { createTRPCContext } from '@/trpc/init';
3import { appRouter } from '@/trpc/routers/_app';
4const handler = (req: Request) =>
5 fetchRequestHandler({
6 endpoint: '/api/trpc',
7 req,
8 router: appRouter,
9 createContext: createTRPCContext,
10 });
11export { handler as GET, handler as POST };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected