diff --git a/src/main.rs b/src/main.rs index c1cb456..a298cbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -129,7 +129,7 @@ async fn main() -> std::io::Result<()> { App::new() .wrap(Logger::default()) .app_data(web::Data::new(state.clone())) - .route("/", web::get().to(connect_handler)) + .route("/", web::post().to(connect_handler)) }) .bind("127.0.0.1:80")? .run()