trytofix
This commit is contained in:
@@ -120,12 +120,9 @@ async fn main() -> std::io::Result<()> {
|
||||
HttpServer::new(move || {
|
||||
println!("Webserver initialized");
|
||||
App::new()
|
||||
.wrap(Logger::default()) // Added this line
|
||||
.wrap(Logger::default())
|
||||
.app_data(web::Data::new(state.clone()))
|
||||
.service(
|
||||
web::scope("")
|
||||
.route("/", web::get().to(connect_handler))
|
||||
)
|
||||
.route("/", web::get().to(connect_handler))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.run()
|
||||
|
Reference in New Issue
Block a user