moving to trpc

This commit is contained in:
2024-11-08 08:16:26 -07:00
parent 3f4d665dd2
commit 9503b208d2
18 changed files with 5151 additions and 8235 deletions

View File

@@ -0,0 +1,14 @@
import { createContext } from "@/services/trpc/context";
import { appRouter } from "@/services/trpc/router/app";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
const handler = (request: Request) => {
return fetchRequestHandler({
endpoint: "/api/trpc",
req: request,
router: appRouter,
createContext: createContext,
});
};
export { handler as GET, handler as POST };