service-scope-fix
This commit is contained in:
@@ -120,7 +120,10 @@ async fn main() -> std::io::Result<()> {
|
|||||||
println!("Webserver initialized");
|
println!("Webserver initialized");
|
||||||
App::new()
|
App::new()
|
||||||
.app_data(web::Data::new(state.clone()))
|
.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")?
|
.bind("127.0.0.1:8080")?
|
||||||
.run()
|
.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user