diff --git a/Cargo.toml b/Cargo.toml index 29ed16a..87b3494 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" reqwest = { version = "0.11", features = ["json"] } futures = "0.3.28" +actix-files = "0.3" [[bin]] name = "presence" diff --git a/src/main.rs b/src/main.rs index 3fb12fd..7ceb74f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,8 @@ use tokio::sync::broadcast; use actix_web::error::{ErrorUnauthorized, ErrorInternalServerError as ServerError}; use std::sync::{Arc, Mutex}; use tokio::task::JoinHandle; +use actix_files::Files; + mod data;