23 lines
837 B
TypeScript
23 lines
837 B
TypeScript
import { type RouteConfig, index, route } from "@react-router/dev/routes";
|
|
|
|
export default [
|
|
index("routes/home.tsx"),
|
|
route("login", "./components/features/auth/LoginForm.tsx"),
|
|
route("register", "./components/features/auth/RegisterForm.tsx"),
|
|
|
|
// Dishes routes
|
|
route("dishes", "routes/dishes.tsx"),
|
|
route("dishes/create", "routes/dishes.create.tsx"),
|
|
route("dishes/:id/edit", "routes/dishes.$id.edit.tsx"),
|
|
|
|
// Users routes
|
|
route("users", "routes/users.tsx"),
|
|
route("users/create", "routes/users.create.tsx"),
|
|
route("users/:id/edit", "routes/users.$id.edit.tsx"),
|
|
|
|
// Schedule routes
|
|
route("schedule/:date/edit", "routes/schedule.$date.edit.tsx"),
|
|
|
|
// History route
|
|
route("scheduled-user-dishes/history", "routes/scheduled-user-dishes.history.tsx"),
|
|
] satisfies RouteConfig;
|