Files
Homarr/src/server/api/root.ts

19 lines
503 B
TypeScript
Raw Normal View History

2023-06-10 10:05:16 +02:00
import { createTRPCRouter } from '~/server/api/trpc';
2023-06-10 10:23:54 +02:00
import { appRouter } from './routers/app';
2023-06-10 11:07:49 +02:00
import { rssRouter } from './routers/rss';
2023-06-10 11:28:35 +02:00
import { configRouter } from './routers/config';
2023-06-10 10:05:16 +02:00
/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
2023-06-10 10:23:54 +02:00
export const rootRouter = createTRPCRouter({
app: appRouter,
2023-06-10 11:07:49 +02:00
rss: rssRouter,
2023-06-10 11:28:35 +02:00
config: configRouter,
2023-06-10 10:23:54 +02:00
});
2023-06-10 10:05:16 +02:00
// export type definition of API
export type RootRouter = typeof rootRouter;