get-post
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user