From 6941f4fb37ffa57c2e4631ff6641976d21151e54 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 18:36:23 +0100 Subject: Add redirect from /stops to root page (#80) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> --- src/frontend/app/routes.tsx | 1 + src/frontend/app/routes/stops.tsx | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/frontend/app/routes/stops.tsx (limited to 'src/frontend/app') diff --git a/src/frontend/app/routes.tsx b/src/frontend/app/routes.tsx index 7192b33..1316b5e 100644 --- a/src/frontend/app/routes.tsx +++ b/src/frontend/app/routes.tsx @@ -3,6 +3,7 @@ import { type RouteConfig, index, route } from "@react-router/dev/routes"; export default [ index("routes/home.tsx"), route("/map", "routes/map.tsx"), + route("/stops", "routes/stops.tsx"), route("/stops/:id", "routes/stops-$id.tsx"), route("/estimates/:id", "routes/estimates-$id.tsx"), route("/timetable/:id", "routes/timetable-$id.tsx"), diff --git a/src/frontend/app/routes/stops.tsx b/src/frontend/app/routes/stops.tsx new file mode 100644 index 0000000..3161eb8 --- /dev/null +++ b/src/frontend/app/routes/stops.tsx @@ -0,0 +1,5 @@ +import { Navigate } from "react-router"; + +export default function StopsRedirect() { + return ; +} -- cgit v1.3