summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-16 14:29:49 +0000
committerroot <root@turin.home>2022-01-16 14:29:49 +0000
commit3245f4ddbd89c0f4cc5ef902bbdaead4e29cdac3 (patch)
tree09ba454c25d63fe013c7e11d092811492aa129ae /main.py
parent10e79cd3fdf5de46b4ebe97f7974699e4551076c (diff)
Redirect endpoint error
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files 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")