This commit is contained in:
Untone 2023-10-12 18:04:03 +03:00
parent b3a4992936
commit 2d32f8b5cc

View File

@ -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()