felia/packages/api/src/router/index.ts

12 lines
263 B
TypeScript
Raw Normal View History

2022-12-01 08:32:38 +00:00
import { router } from "../trpc";
import { postRouter } from "./post";
import { authRouter } from "./auth";
export const appRouter = router({
post: postRouter,
auth: authRouter,
});
// export type definition of API
export type AppRouter = typeof appRouter;