From cadedf3c2f4766437ec0c1c1462d6b13e11a3ad7 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 6 Sep 2017 18:22:53 -0300 Subject: [bug] allow POST to blobs resource --- src/leap/soledad/server/url_mapper.py | 16 ++++++++-------- 1 file 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']) -- cgit v1.2.3