38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
import { type RouteConfig, index, route, prefix } from "@react-router/dev/routes";
|
|
|
|
export default [
|
|
index("pages/HomePage.tsx"),
|
|
// route("page2", "pages/Page2.tsx"),
|
|
|
|
...prefix("dashboard", [
|
|
route("account", "pages/dashboard_sub/DashboardAccount.tsx", [
|
|
index("pages/dashboard_sub/DashboardAccountDefault.tsx"),
|
|
route("login", "pages/dashboard_sub/DashboardLogin.tsx"),
|
|
route("register", "pages/dashboard_sub/DashboardRegister.tsx")
|
|
])
|
|
|
|
]),
|
|
|
|
route("dashboard", "pages/Dashboard.tsx", [
|
|
index("pages/dashboard/Home.tsx"),
|
|
|
|
route("treatment_record", "pages/dashboard/TreatmentRecord.tsx", [
|
|
index("pages/dashboard/TreatmentRecordDefault.tsx"),
|
|
|
|
route(":patientId", "pages/dashboard/TreatmentRecordSub.tsx")
|
|
]),
|
|
|
|
route("patient_booking", "pages/dashboard/PatientBooking.tsx"),
|
|
|
|
route("appoint_management", "pages/dashboard/AppointmentManagement.tsx"),
|
|
|
|
route("doctor_treatment", "pages/dashboard/DoctorTreatment.tsx"),
|
|
|
|
route("ward_management", "pages/dashboard/WardManagement.tsx"),
|
|
route("medical_teams_management", "pages/dashboard/MedicalTeamsManagement.tsx"),
|
|
route("patients_management", "pages/dashboard/PatientsManagement.tsx"),
|
|
route("staff_management", "pages/dashboard/StaffManagement.tsx"),
|
|
route("page2", "pages/dashboard/Page2.tsx"),
|
|
]),
|
|
] satisfies RouteConfig;
|