mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 18:56:45 +02:00
12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import * as trpcNext from "@trpc/server/adapters/next";
|
|
|
|
import { createContext } from "../../trpc/context";
|
|
import { appRouter } from "../../trpc/routers";
|
|
import { withSessionRoute } from "../session";
|
|
|
|
export const trpcNextApiHandler = withSessionRoute(
|
|
trpcNext.createNextApiHandler({
|
|
router: appRouter,
|
|
createContext,
|
|
}),
|
|
);
|