pchl/src/server/api/root.ts

15 lines
370 B
TypeScript

import { createTRPCRouter } from "./trpc";
import { exampleRouter } from "./routers/example";
/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here
*/
export const appRouter = createTRPCRouter({
example: exampleRouter,
});
// export type definition of API
export type AppRouter = typeof appRouter;