Add tRPC

This commit is contained in:
Meier Lukas
2023-06-10 10:05:16 +02:00
parent e490baae28
commit 21044fb1c2
5 changed files with 202 additions and 10 deletions

11
src/server/api/root.ts Normal file
View File

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