TwitchClone / src / server / api / root.ts
root.ts
Raw
import { createTRPCRouter } from "./trpc";
import { exampleRouter } from "./routers/example";
// import { streamsRouter } from "./routers/streams";
import { lambdaRouter } from "./routers/lambda";

/**
 * This is the primary router for your server.
 *
 * All routers added in /api/routers should be manually added here
 */
export const config = {
  api: {
    bodyParser: {
      sizeLimit: "8mb",
    },
  },
};
export const appRouter = createTRPCRouter({
  example: exampleRouter,
  // streams: streamsRouter,
  lambda: lambdaRouter,
});

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