From 447e037755e5a6a050a58a7d107f1efcdbacf156 Mon Sep 17 00:00:00 2001 From: Peter Pan Date: Fri, 15 May 2020 12:06:53 +0800 Subject: [PATCH] feat: redirect root --- visualdl/server/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/visualdl/server/app.py b/visualdl/server/app.py index c33ac042..f9a16795 100644 --- a/visualdl/server/app.py +++ b/visualdl/server/app.py @@ -176,6 +176,10 @@ def create_app(args): lang = request.accept_languages.best_match(support_language) return lang + @app.route("/") + def base(): + return redirect(public_path, code=302) + @app.route(public_path + "/") def index(): lang = get_locale() -- GitLab