import { router } from "@/lib/trpc";
import { mediaRouter } from "@/trpc/routers/media";
import { onboardRouter } from "@/trpc/routers/onboard";
import { statsRouter } from "@/trpc/routers/stats";
import { publicProcedure } from "./procedures";
import { dashboardRouter } from "./routers/dashboard";
import { libraryRouter } from "./routers/library";
import { playbackRouter } from "./routers/playback";
import { titleRouter } from "./routers/titles";

export const appRouter = router({
	healthCheck: publicProcedure.query(() => {
		return "OK";
	}),
	onboard: onboardRouter,
	media: mediaRouter,
	title: titleRouter,
	library: libraryRouter,
	stats: statsRouter,
	dashboard: dashboardRouter,
	playback: playbackRouter,
});
export type AppRouter = typeof appRouter;
