From 26ea045216b2887ebe11fee53b5db1f4a6391f6b Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 27 Jul 2024 22:10:29 +0200 Subject: [PATCH] Add titles for pages --- src/main.rs | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 48b7614..3b8f02f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,7 +115,7 @@ async fn main() { let app = Router::new() .route("/", get(route_index)) - .route("/station/:station", get(route_station_overview)) + .route("/station/:station_id", get(route_station_overview)) .route("/station/:station_id/to/:dest_station_id", get(route_station_to_dest_station)) .with_state(state); @@ -130,7 +130,11 @@ async fn route_index( ) -> Result, String> { let mut out = String::new(); - out.push_str("