diff --git a/cli/src/main.rs b/cli/src/main.rs index 14b5fc8..6133fc5 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -432,11 +432,14 @@ fn main() -> Result<()> { actix_files::Files::new("/", ui_path).index_file("index.html"), ); } - } else { - // TODO - 503 error } - app + #[actix_web::get("/")] + async fn unavailable_index() -> actix_web::HttpResponse { + actix_web::HttpResponse::ServiceUnavailable().body("Web UI not enabled.") + } + + return app.service(unavailable_index); }); let bind_result = server.bind(&bind);