提交 447e0377 编写于 作者: P Peter Pan

feat: redirect root

上级 8a670419
...@@ -176,6 +176,10 @@ def create_app(args): ...@@ -176,6 +176,10 @@ def create_app(args):
lang = request.accept_languages.best_match(support_language) lang = request.accept_languages.best_match(support_language)
return lang return lang
@app.route("/")
def base():
return redirect(public_path, code=302)
@app.route(public_path + "/") @app.route(public_path + "/")
def index(): def index():
lang = get_locale() lang = get_locale()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册