Initial commit
This commit is contained in:
11
packages/api/src/root.ts
Normal file
11
packages/api/src/root.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { authRouter } from "./router/auth";
|
||||
import { postRouter } from "./router/post";
|
||||
import { createTRPCRouter } from "./trpc";
|
||||
|
||||
export const appRouter = createTRPCRouter({
|
||||
auth: authRouter,
|
||||
post: postRouter,
|
||||
});
|
||||
|
||||
// export type definition of API
|
||||
export type AppRouter = typeof appRouter;
|
||||
Reference in New Issue
Block a user