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

feat: redirect root

上级 8a670419
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册