diff --git a/backend/src/router.rs b/backend/src/router.rs index a239730..1793941 100644 --- a/backend/src/router.rs +++ b/backend/src/router.rs @@ -100,7 +100,7 @@ pub fn build_router(state: AppState, config: &AppConfig) -> Router { let index_file = format!("{}/index.html", static_dir); let spa_fallback = - ServeDir::new(&static_dir).not_found_service(ServeFile::new(&index_file)); + ServeDir::new(&static_dir).fallback(ServeFile::new(&index_file)); // Build the full application with state let mut app = Router::new()