summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-03 14:51:14 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-03 14:51:14 +0200
commit27ea5016c4aaa4350ada4b1e6a534b8219fff578 (patch)
treec8002cd9094cc348b97b4c7585dfa3e2ce78d639 /ogcp/views.py
parent37a03045751832e19cd8151b87e77da0878ca9b7 (diff)
Add images view
Images view manages all the images stored in the server. Follow up patches adds actions to get and edit image details, and to delete them.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 72ca1b1..75b7ea1 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -767,3 +767,10 @@ def action_room_delete():
def commands():
scopes, clients = get_scopes()
return render_template('commands.html', scopes=scopes, clients=clients)
+
+@app.route('/images/', methods=['GET'])
+@login_required
+def images():
+ r = g.server.get('/images')
+ images = r.json()['images']
+ return render_template('images.html', images=images)