summaryrefslogtreecommitdiffstats
path: root/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'views.py')
-rw-r--r--views.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/views.py b/views.py
new file mode 100644
index 0000000..e918d3c
--- /dev/null
+++ b/views.py
@@ -0,0 +1,11 @@
+from app import app
+from auth import auth
+from flask import g
+from utils import templated
+
+@app.route('/')
+@templated('index.html')
+@auth.login_required
+def index():
+ groups = [member.group for member in g.user.groups]
+ return {'groups': groups}