From 3245f4ddbd89c0f4cc5ef902bbdaead4e29cdac3 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 16 Jan 2022 14:29:49 +0000 Subject: Redirect endpoint error --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index c99f638..a74baaf 100644 --- a/main.py +++ b/main.py @@ -43,6 +43,7 @@ def main_page(): @app.route("/") +@app.route("/index") @app.route("/index.html") def index(): return main_page() @@ -51,13 +52,13 @@ def index(): @app.route("/up") def form(): boiler.up() - return redirect(url_for('/')) + return redirect(url_for('index')) @app.route("/down") def activity(): boiler.down() - return redirect(url_for('/')) + return redirect(url_for('index')) @app.route("/export") -- cgit v1.2.3