debug: POST to get in / reguest
This commit is contained in:
parent
4f3fe44e7a
commit
c820970d0b
|
@ -135,7 +135,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
App::new()
|
App::new()
|
||||||
.wrap(Logger::default())
|
.wrap(Logger::default())
|
||||||
.app_data(web::Data::new(state.clone()))
|
.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))
|
.route("/test", web::post().to(test_handler))
|
||||||
})
|
})
|
||||||
.bind("0.0.0.0:8080")?
|
.bind("0.0.0.0:8080")?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user