logs
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -455,7 +455,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "discoursio-presence"
|
name = "discoursio-presence"
|
||||||
version = "0.2.8"
|
version = "0.2.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"futures",
|
"futures",
|
||||||
|
|||||||
@@ -117,11 +117,11 @@ async fn main() -> std::io::Result<()> {
|
|||||||
};
|
};
|
||||||
println!("Redis client initialized");
|
println!("Redis client initialized");
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
|
println!("Webserver initialized");
|
||||||
App::new()
|
App::new()
|
||||||
.app_data(web::Data::new(state.clone()))
|
.app_data(web::Data::new(state.clone()))
|
||||||
.route("/connect", web::get().to(connect_handler))
|
.route("/connect", web::get().to(connect_handler))
|
||||||
.route("/disconnect", web::get().to(disconnect_handler))
|
.route("/disconnect", web::get().to(disconnect_handler))
|
||||||
println!("Webserver initialized");
|
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8080")?
|
.bind("127.0.0.1:8080")?
|
||||||
.run()
|
.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user