From 9c9d285db982379b1720b476c7ff6dc92acc42a9 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Fri, 31 Mar 2017 23:21:59 +0100 Subject: [PATCH] Fix paths --- webinterface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webinterface.py b/webinterface.py index 60df63b..82b93fb 100644 --- a/webinterface.py +++ b/webinterface.py @@ -63,7 +63,7 @@ def teamspeakClientCheck(clientName): return redirect(url_for("payment")) -@app.route("/") +@app.route("/plus/") def index(): if 'username' in session: #No longer in the checkout flow, reset! @@ -71,7 +71,7 @@ def index(): return render_template("index.html") -@app.route("/collectsunlight") +@app.route("/plus/collectsunlight") def wait(): if "username" in session: return render_template("wait.html") @@ -79,7 +79,7 @@ def wait(): return redirect(url_for("buy")) -@app.route("/pay") +@app.route("/plus/pay") def payment(): if "username" in session: return render_template("payment.html") @@ -87,7 +87,7 @@ def payment(): return redirect(url_for("buy")) -@app.route("/activate") +@app.route("/plus/activate") def activate(): if "username" in session: if teamspeakClientAdd(session['username']): @@ -100,7 +100,7 @@ def activate(): return redirect(url_for("buy")) -@app.route("/buy", methods=['GET', 'POST']) +@app.route("/plus/buy", methods=['GET', 'POST']) def buy(): if request.method == 'POST': session['username'] = request.form['username']