2023-04-20 04:20:00 -06:00
|
|
|
import { roomRouter } from "~/server/api/routers/room";
|
2023-07-11 17:22:54 -06:00
|
|
|
import { createTRPCRouter } from "~/server/api/trpc";
|
|
|
|
import { voteRouter } from "./routers/vote";
|
2023-04-20 04:20:00 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is the primary router for your server.
|
|
|
|
*
|
|
|
|
* All routers added in /api/routers should be manually added here.
|
|
|
|
*/
|
|
|
|
export const appRouter = createTRPCRouter({
|
|
|
|
room: roomRouter,
|
|
|
|
vote: voteRouter,
|
|
|
|
});
|
|
|
|
|
|
|
|
// export type definition of API
|
|
|
|
export type AppRouter = typeof appRouter;
|