- Add tooth router and vaccine router with full CRUD operations - Implement vaccine form and list components with edit/delete functionality - Connect denture visualization to database for persistent tooth tracking - Add child edit dialog and delete functionality with cascade deletion - Implement WHO growth percentile calculations for weight and height - Update dashboard to display real data for measurements, vaccines, and teeth - Add dialog, alert-dialog, and tooltip UI components - Install @radix-ui/react-dialog dependency
20 lines
560 B
TypeScript
20 lines
560 B
TypeScript
import { router } from "@/server/trpc"
|
|
import { childRouter } from "./routers/child"
|
|
import { authRouter } from "./routers/auth"
|
|
import { measurementRouter } from "./routers/measurement"
|
|
import { toothRouter } from "./routers/tooth"
|
|
import { vaccineRouter } from "./routers/vaccine"
|
|
|
|
export const appRouter = router({
|
|
child: childRouter,
|
|
auth: authRouter,
|
|
measurement: measurementRouter,
|
|
tooth: toothRouter,
|
|
vaccine: vaccineRouter,
|
|
})
|
|
|
|
// Export type helper
|
|
export type AppRouter = typeof appRouter
|
|
|
|
// Export router instance
|
|
export default appRouter |