accept both GET and POST for /

This commit is contained in:
Son NK 2020-01-02 22:10:27 +01:00
parent be1b689463
commit 0327f755a1
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def register_blueprints(app: Flask):
def set_index_page(app):
@app.route("/")
@app.route("/", methods=["GET", "POST"])
def index():
if current_user.is_authenticated:
return redirect(url_for("dashboard.index"))