diff --git a/tools/web_monitor/app.py b/tools/web_monitor/app.py index 3a98743e..3d45debf 100644 --- a/tools/web_monitor/app.py +++ b/tools/web_monitor/app.py @@ -20,8 +20,8 @@ templates = Jinja2Templates(directory="templates") @app.get("/") -def index(): - return dashboard() +def index(request: Request): + return RedirectResponse(request.url_for('dashboard')) @app.get("/dashboard") diff --git a/tools/web_monitor/templates/index.html b/tools/web_monitor/templates/index.html index 939ec539..9b2e9e34 100644 --- a/tools/web_monitor/templates/index.html +++ b/tools/web_monitor/templates/index.html @@ -3,6 +3,9 @@ +{% if cur_miners|length == 0 %}Click here to add miners.{% endif %} + +