diff options
author | Adam T. Carpenter <atc@53hor.net> | 2024-09-28 09:39:00 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2024-09-28 09:39:00 -0400 |
commit | 45a658e693ab9779ddd364d2acb651178db2dc99 (patch) | |
tree | 10650be7686d995c96b8b0cc128bbf8df04ecc74 | |
parent | 4b5e92345ff880f9233179191cfce1c04bd4c386 (diff) | |
download | carpentertutoring-45a658e693ab9779ddd364d2acb651178db2dc99.tar.xz carpentertutoring-45a658e693ab9779ddd364d2acb651178db2dc99.zip |
fix: trailing slash route temp fix
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |