This commit is contained in:
Tony Rewin 2023-10-06 18:13:49 +03:00
parent f726de21e6
commit 86742bf982
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -455,7 +455,7 @@ dependencies = [
[[package]]
name = "discoursio-presence"
version = "0.2.8"
version = "0.2.11"
dependencies = [
"actix-web",
"futures",

View File

@ -117,11 +117,11 @@ async fn main() -> std::io::Result<()> {
};
println!("Redis client initialized");
HttpServer::new(move || {
println!("Webserver initialized");
App::new()
.app_data(web::Data::new(state.clone()))
.route("/connect", web::get().to(connect_handler))
.route("/disconnect", web::get().to(disconnect_handler))
println!("Webserver initialized");
})
.bind("127.0.0.1:8080")?
.run()