12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
|
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;
|