summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 525d23f..16ba0b6 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1237,6 +1237,14 @@ def images():
return render_template('images.html', images=images)
+@app.route('/repositories/', methods=['GET'])
+@login_required
+def repositories():
+ r = g.server.get('/repositories')
+ repositories = r.json()['repositories']
+ return render_template('repositories.html', repositories=repositories)
+
+
@app.route('/users/', methods=['GET'])
@login_required
def users():