From c820970d0ba0757b71a897d563dff7005dba1842 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 17:58:06 -0300 Subject: [PATCH] debug: POST to get in / reguest --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")?