🏗️ Migrate ping to tRPC

This commit is contained in:
Meier Lukas
2023-06-10 10:23:54 +02:00
parent 21044fb1c2
commit 8e14e323a7
4 changed files with 77 additions and 22 deletions

View File

@@ -1,11 +1,14 @@
import { createTRPCRouter } from '~/server/api/trpc';
import { appRouter } from './routers/app';
/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
export const rootRouter = createTRPCRouter({});
export const rootRouter = createTRPCRouter({
app: appRouter,
});
// export type definition of API
export type RootRouter = typeof rootRouter;