cal.pub0.org/packages/trpc/server/routers/_app.ts

18 lines
424 B
TypeScript
Raw Normal View History

/**
* This file contains the root router of your tRPC-backend
*/
import { router } from "../trpc";
import { viewerRouter } from "./viewer/_router";
/**
* Create your application's root router
* If you want to use SSG, you need export this
* @link https://trpc.io/docs/ssg
* @link https://trpc.io/docs/router
*/
export const appRouter = router({
viewer: viewerRouter,
});
export type AppRouter = typeof appRouter;