summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-06 18:22:53 -0300
committerdrebs <drebs@riseup.net>2017-09-08 08:14:36 -0300
commitcadedf3c2f4766437ec0c1c1462d6b13e11a3ad7 (patch)
treeb3ee92625678635a4936aae394f78283900924f2
parent6b1d6d309da90d34f4683e8154d88800e640d01a (diff)
[bug] allow POST to blobs resource8938
-rw-r--r--src/leap/soledad/server/url_mapper.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/leap/soledad/server/url_mapper.py b/src/leap/soledad/server/url_mapper.py
index 20f22510..9578911a 100644
--- a/src/leap/soledad/server/url_mapper.py
+++ b/src/leap/soledad/server/url_mapper.py
@@ -57,25 +57,25 @@ class URLMapper(object):
/shared-db | GET
/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}/{blob_id} | GET, PUT, DELETE, POST
/blobs/{uuid} | GET
/incoming/ | PUT
"""
- # auth info for global resource
+ # global resource
self._connect('/', ['GET'])
# robots
self._connect('/robots.txt', ['GET'])
- # auth info for shared-db database resource
+ # shared-db database resource
self._connect('/%s' % SHARED_DB_NAME, ['GET'])
- # auth info for shared-db doc resource
+ # shared-db doc resource
self._connect('/%s/doc/{id:.*}' % SHARED_DB_NAME,
['GET', 'PUT', 'DELETE'])
- # auth info for user-db sync resource
+ # user-db sync resource
self._connect('/user-{uuid}/sync-from/{source_replica_uid}',
['GET', 'PUT', 'POST'])
- # auth info for blobs resource
- self._connect('/blobs/{uuid}/{blob_id}', ['GET', 'PUT', 'DELETE'])
+ # blobs resource
+ self._connect('/blobs/{uuid}/{blob_id}',
+ ['GET', 'PUT', 'DELETE', 'POST'])
self._connect('/blobs/{uuid}/', ['GET'])
-
# incoming resource
self._connect('/incoming/{target_user_uuid}/{incoming_id}', ['PUT'])