From 45a658e693ab9779ddd364d2acb651178db2dc99 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 28 Sep 2024 09:39:00 -0400 Subject: fix: trailing slash route temp fix --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 81c4427..b65a58b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,8 +39,11 @@ async fn main() { .route("/posts/:post_id", get(handlers::post_handler)) .with_state(posts) .route("/policies", get(handlers::policies_handler)) + .route("/policies/", get(handlers::policies_handler)) .route("/brochure", get(handlers::brochure_handler)) + .route("/brochure/", get(handlers::brochure_handler)) .route("/about", get(handlers::about_handler)) + .route("/about/", get(handlers::about_handler)) .with_state(tutors) .nest_service("/assets", ServeDir::new(assets_dir)) .nest_service("/team", ServeDir::new(tutor_dir)) -- cgit v1.2.3