summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
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")