From b033f81071514e6dca4b4a5e2581966254e49365 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sun, 26 Oct 2025 18:49:11 -0300 Subject: [PATCH] fix: update file paths to use correct directory for HTML files --- src/web_server/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web_server/mod.rs b/src/web_server/mod.rs index a0ff1ba9..bcbebf37 100644 --- a/src/web_server/mod.rs +++ b/src/web_server/mod.rs @@ -4,7 +4,7 @@ use std::fs; #[actix_web::get("/")] async fn index() -> Result { - match fs::read_to_string("web/app/index.html") { + match fs::read_to_string("web/html/index.html") { Ok(html) => Ok(HttpResponse::Ok().content_type("text/html").body(html)), Err(e) => { error!("Failed to load index page: {}", e); @@ -17,7 +17,7 @@ async fn index() -> Result { async fn bot_index(req: HttpRequest) -> Result { let botname = req.match_info().query("botname"); debug!("Serving bot interface for: {}", botname); - match fs::read_to_string("web/index.html") { + match fs::read_to_string("web/html/index.html") { Ok(html) => Ok(HttpResponse::Ok().content_type("text/html").body(html)), Err(e) => { error!("Failed to load index page for bot {}: {}", botname, e); @@ -29,7 +29,7 @@ async fn bot_index(req: HttpRequest) -> Result { #[actix_web::get("/{filename:.*}")] async fn static_files(req: HttpRequest) -> Result { let filename = req.match_info().query("filename"); - let path = format!("web/app/{}", filename); + let path = format!("web/html/{}", filename); match fs::read(&path) { Ok(content) => { debug!(