summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-28 19:56:51 -0300
committerdrebs <drebs@leap.se>2017-04-04 18:27:39 +0200
commita3532005c19c9ce7a726c9aeb924745589b6b230 (patch)
tree2d180ca9e78a7cfe3c42b90d1665ff8ea5ef2728 /server
parente5e80c90d3f174cfe8b45b8e25941a31501e8559 (diff)
[bug] enable '/blobs/{uuid}' for GET on url_mapper
Diffstat (limited to 'server')
-rw-r--r--server/src/leap/soledad/server/url_mapper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/leap/soledad/server/url_mapper.py b/server/src/leap/soledad/server/url_mapper.py
index d4961c92..b50a81cd 100644
--- a/server/src/leap/soledad/server/url_mapper.py
+++ b/server/src/leap/soledad/server/url_mapper.py
@@ -58,6 +58,7 @@ class URLMapper(object):
/shared-db/doc/{any_id} | GET, PUT, DELETE
/user-{uuid}/sync-from/{source} | GET, PUT, POST
/blobs/{uuid}/{blob_id} | GET, PUT, POST
+ /blobs/{uuid} | GET
"""
# auth info for global resource
self._connect('/', ['GET'])
@@ -73,3 +74,4 @@ class URLMapper(object):
['GET', 'PUT', 'POST'])
# auth info for blobs resource
self._connect('/blobs/{uuid}/{blob_id}', ['GET', 'PUT'])
+ self._connect('/blobs/{uuid}', ['GET'])