import { annunciRouter } from "~/server/api/routers/annunci";
import { authRouter } from "~/server/api/routers/auth";
import { banlistRouter } from "~/server/api/routers/banlist";
import { chatRouter } from "~/server/api/routers/chat";
import { chatSSERouter } from "~/server/api/routers/chat_sse";
import { comunicazioniRouter } from "~/server/api/routers/comunicazioni";
import { eventQueueRouter } from "~/server/api/routers/event_queue";
import { fattureRouter } from "~/server/api/routers/fatture";
import { intrestsRouter } from "~/server/api/routers/interests";
import { messagesSSERouter } from "~/server/api/routers/messages_sse";
import { pagamentiRouter } from "~/server/api/routers/pagamenti";
import { prezziarioRouter } from "~/server/api/routers/prezziario";
import { servizioRouter } from "~/server/api/routers/servizio";
import { statsRouter } from "~/server/api/routers/stats";
import { storageRouter } from "~/server/api/routers/storage";
import { stripeRouter } from "~/server/api/routers/stripe";
import { stripeReportsRouter } from "~/server/api/routers/stripe_reports";
import { testRouter } from "~/server/api/routers/test";
import { usersRouter } from "~/server/api/routers/users";
import { createTRPCRouter } from "~/server/api/trpc";
import { bannersRouter } from "./routers/banners";
import { catastoRouter } from "./routers/catasto";
import { etichetteRouter } from "./routers/etichette";
import { flagsRouter } from "./routers/flags";
import { inviteRouter } from "./routers/invite";
import { potenzialiRouter } from "./routers/potenziali";
import { revalidationRouter } from "./routers/revalidation";
import { stringsRouter } from "./routers/strings";

//import { lazy } from '@trpc/server';

export const appRouter = createTRPCRouter({
	annunci: annunciRouter,
	auth: authRouter,
	banlist: banlistRouter,
	chat: chatRouter,
	chatSSE: chatSSERouter,
	comunicazioni: comunicazioniRouter,
	eventQueue: eventQueueRouter,
	fatture: fattureRouter,
	intrests: intrestsRouter,
	messagesSSE: messagesSSERouter,
	pagamenti: pagamentiRouter,
	prezziario: prezziarioRouter,
	servizio: servizioRouter,
	stats: statsRouter,
	storage: storageRouter,
	stripe: stripeRouter,
	stripe_reports: stripeReportsRouter,
	test: testRouter,
	users: usersRouter,
	//sync: syncRouter,
	catasto: catastoRouter,
	banners: bannersRouter,
	flags: flagsRouter,
	etichette: etichetteRouter,
	strings: stringsRouter,
	revalidation: revalidationRouter,
	potenziali: potenzialiRouter,
	invite: inviteRouter,
});
export type AppRouter = typeof appRouter;
