feat(core-api): compose @repo/auth/api into appRouter under 'auth' namespace
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import type { AuthRouter } from "@repo/auth";
|
||||
import type { BlogRouter } from "@repo/blog";
|
||||
import { router } from "@repo/core-shared/trpc/init";
|
||||
import { authRouter } from "@repo/auth/api";
|
||||
import { blogRouter } from "@repo/blog/api";
|
||||
|
||||
export const appRouter = router({
|
||||
auth: authRouter,
|
||||
blog: blogRouter,
|
||||
});
|
||||
|
||||
export type AppRouter = typeof appRouter;
|
||||
export type AppRouter = {
|
||||
auth: AuthRouter;
|
||||
blog: BlogRouter;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user