get-post
This commit is contained in:
parent
b3a4992936
commit
2d32f8b5cc
|
@ -129,7 +129,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::get().to(connect_handler))
|
.route("/", web::post().to(connect_handler))
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:80")?
|
.bind("127.0.0.1:80")?
|
||||||
.run()
|
.run()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user