debug: POST to get in / reguest

This commit is contained in:
Stepan Vladovskiy 2023-10-13 17:58:06 -03:00
parent 4f3fe44e7a
commit c820970d0b

View File

@ -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")?