Lint and TRPC

This commit is contained in:
2024-12-17 18:27:08 +00:00
parent 28cf5edc6a
commit 3f62ec6251
16 changed files with 1816 additions and 1224 deletions

View File

@@ -0,0 +1,11 @@
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';
import { createTRPCContext } from '@/trpc/init';
import { appRouter } from '@/trpc/routers/_app';
const handler = (req: Request): Promise<Response> =>
fetchRequestHandler({
endpoint: '/api/trpc',
req,
router: appRouter,
createContext: createTRPCContext,
});
export { handler as GET, handler as POST };