diff --git a/server/src/main.rs b/server/src/main.rs index 6d95008..c7ca643 100755 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -37,7 +37,11 @@ async fn main() -> std::io::Result<()> { .app_data(Data::new(data.clone())) .app_data(Data::new(capt_db.clone())), ) - .service(Files::new("/", "./public").index_file("index.html")) + .service( + Files::new("/", "./public") + .index_file("index.html") + .default_handler(actix_files::NamedFile::open("./public/index.html").unwrap()), + ) }) .bind("0.0.0.0:8080")? .run()