diff --git a/server/src/infra/tcp_server.rs b/server/src/infra/tcp_server.rs index ee11596..dd808f6 100644 --- a/server/src/infra/tcp_server.rs +++ b/server/src/infra/tcp_server.rs @@ -25,9 +25,7 @@ use std::sync::RwLock; use tracing::info; async fn index() -> actix_web::Result { - let mut path = PathBuf::new(); - path.push("app"); - path.push("index.html"); + let path = PathBuf::from(r"app/index.html"); Ok(NamedFile::open(path)?) }