summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-22 13:56:47 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-27 09:48:36 +0200
commit6142a171fd7c5295eca73d820b368401b9d519b2 (patch)
treee2f8d55d734805e85349437f5175ebeb145fd4bc /ogcp
parenta010f11224fd86a5e73549275517a4cc33f94047 (diff)
Fix repositories retrieving
Commit X wrongly changed the URI to retrieve the repositories of an ogServer. Fixes: cf02e0c ("Add Servers section")
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index fc2a3fb..1be52a0 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -143,8 +143,8 @@ def get_repository(repository_id):
def get_repositories():
- r = g.server.get('/servers')
- repositories = r.json()['servers']
+ r = g.server.get('/repositories')
+ repositories = r.json()['repositories']
return repositories