diff options
| author | root <root@turin.home> | 2022-01-16 14:29:49 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-16 14:29:49 +0000 |
| commit | 3245f4ddbd89c0f4cc5ef902bbdaead4e29cdac3 (patch) | |
| tree | 09ba454c25d63fe013c7e11d092811492aa129ae /main.py | |
| parent | 10e79cd3fdf5de46b4ebe97f7974699e4551076c (diff) | |
Redirect endpoint error
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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") |
