accept both GET and POST for /
This commit is contained in:
parent
be1b689463
commit
0327f755a1
|
@ -195,7 +195,7 @@ def register_blueprints(app: Flask):
|
||||||
|
|
||||||
|
|
||||||
def set_index_page(app):
|
def set_index_page(app):
|
||||||
@app.route("/")
|
@app.route("/", methods=["GET", "POST"])
|
||||||
def index():
|
def index():
|
||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
return redirect(url_for("dashboard.index"))
|
return redirect(url_for("dashboard.index"))
|
||||||
|
|
Loading…
Reference in New Issue