diff --git a/src/main.rs b/src/main.rs index 003e506..0656489 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,7 +135,7 @@ async fn main() -> std::io::Result<()> { App::new() .wrap(Logger::default()) .app_data(web::Data::new(state.clone())) - .route("/", web::post().to(connect_handler)) + .route("/", web::get().to(connect_handler)) .route("/test", web::post().to(test_handler)) }) .bind("0.0.0.0:8080")?