From 2d32f8b5cccd9a03988ca6fc602a52c1fe15c608 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 12 Oct 2023 18:04:03 +0300 Subject: [PATCH] get-post --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()