diff --git a/src/main.rs b/src/main.rs index 742e8da..6b4502c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,8 +73,8 @@ async fn main() { }; let app = Router::new() - .route("/votes/submit/:slug", post(leaderboard_submit_score)) - .route("/votes/view/:slug", get(view_votes)) + .route("/votes/:slug", post(leaderboard_submit_score)) + .route("/votes/:slug", get(view_votes)) .with_state(initial_state.clone()); let addr = SocketAddr::from(([127, 0, 0, 1], 3000));