UNPKG

create-better-t-stack

Version:

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

12 lines (9 loc) 262 B
import { router, publicProcedure } from "../lib/trpc"; import { todoRouter } from "./todo"; export const appRouter = router({ healthCheck: publicProcedure.query(() => { return "OK"; }), todo: todoRouter, }); export type AppRouter = typeof appRouter;