diff --git a/backend/src/main.rs b/backend/src/main.rs index f42dc39..2870335 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -1,4 +1,5 @@ use actix_cors::Cors; +use actix_files as fs; use actix_web::{web, App, HttpServer}; use std::sync::{Arc, Mutex}; @@ -23,6 +24,7 @@ async fn main() -> std::io::Result<()> { .allow_any_method(), ) .app_data(web::Data::new(db.clone())) + .service(fs::Files::new("/", "./frontend/dist").index_file("index.html")) .route("/login", web::post().to(handlers::login)) // Public: Login .route( "/forms/{id}/submissions",