import { createTRPCRouter } from "~/server/api/trpc";
import { productRouter } from "./routers/product";
import { paymentRouter } from "./routers/payment";
import { saleRouter } from "./routers/sale";
import { categoryRouter } from "./routers/category";
import { registerRouter } from "./routers/register";
/**
 * This is the primary router for your server.
 *
 * All routers added in /api/routers should be manually added here.
 */
export const appRouter = createTRPCRouter({
  product: productRouter,
  payment: paymentRouter,
  sale: saleRouter,
  category: categoryRouter,
  register: registerRouter,
});

// export type definition of API
export type AppRouter = typeof appRouter;
