summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.py b/app.py
index f145354..2421ee9 100644
--- a/app.py
+++ b/app.py
@@ -27,6 +27,11 @@ def get_time():
return render_template(t, mins=mins, secs=secs)
+@app.route("/control", methods=["GET"])
+def get_controls():
+ return render_template("controls.j2", courts=rg.courts.get_courts())
+
+
@app.route("/guests", methods=["GET"])
def get_guests():
t = re.from_string('{% from "macros.j2" import guests %}{{guests(count)}}')