service-scope-fix

This commit is contained in:
Untone 2023-10-11 18:08:12 +03:00
parent f931a9288e
commit f66ea24f7e

View File

@ -120,7 +120,10 @@ async fn main() -> std::io::Result<()> {
println!("Webserver initialized");
App::new()
.app_data(web::Data::new(state.clone()))
.route("/", web::get().to(connect_handler))
.service(
web::scope("")
.route("/", web::get().to(connect_handler))
)
})
.bind("127.0.0.1:8080")?
.run()