diff --git a/server/src/infra/tcp_server.rs b/server/src/infra/tcp_server.rs index 9d083ba..4093318 100644 --- a/server/src/infra/tcp_server.rs +++ b/server/src/infra/tcp_server.rs @@ -73,9 +73,11 @@ fn http_config( // Serve static files .service(Files::new("/static", "./app/static")) // Serve the index - .service(web::scope("/") - .route("", web::get().to(index)) - .route("index.html", web::get().to(index))); + .service( + web::scope("/") + .route("", web::get().to(index)) + .route("index.html", web::get().to(index)), + ); } pub(crate) struct AppState {