summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2024-09-28 09:39:00 -0400
committerAdam T. Carpenter <atc@53hor.net>2024-09-28 09:39:00 -0400
commit45a658e693ab9779ddd364d2acb651178db2dc99 (patch)
tree10650be7686d995c96b8b0cc128bbf8df04ecc74 /src/main.rs
parent4b5e92345ff880f9233179191cfce1c04bd4c386 (diff)
downloadcarpentertutoring-45a658e693ab9779ddd364d2acb651178db2dc99.tar.xz
carpentertutoring-45a658e693ab9779ddd364d2acb651178db2dc99.zip
fix: trailing slash route temp fix
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
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))