From bd30731a81e394db579a79c3eae4c501b87c2474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Arranz?= Date: Thu, 21 Sep 2017 12:29:11 +0200 Subject: [PATCH] Fix url mapping. See #299 --- src/wirecloud/platform/urls.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wirecloud/platform/urls.py b/src/wirecloud/platform/urls.py index accea6a807..697cf0c410 100644 --- a/src/wirecloud/platform/urls.py +++ b/src/wirecloud/platform/urls.py @@ -150,9 +150,6 @@ url(r'^api/workspace/(?P\d+)/resources$', localcatalogue_views.WorkspaceResourceCollection(permitted_methods=('GET',)), name='wirecloud.workspace_resource_collection'), - url(r'^api/workspace/(?P[^/]+)/(?P[^/]+)?$', - workspace_views.WorkspaceEntry(permitted_methods=('GET', 'POST', 'DELETE',)), - name='wirecloud.workspace_entry_owner_name'), url(r'^api/workspace/(?P\d+)/wiring$', wiring_views.WiringEntry(permitted_methods=('PUT', 'PATCH')), @@ -170,6 +167,10 @@ workspace_views.WorkspacePublisherEntry(permitted_methods=('POST',)), name='wirecloud.workspace_publish'), + url(r'^api/workspace/(?P[^/]+)/(?P[^/]+)?$', + workspace_views.WorkspaceEntry(permitted_methods=('GET', 'POST', 'DELETE',)), + name='wirecloud.workspace_entry_owner_name'), + url(r'api/admin/switchuser$', SwitchUserService(), name='wirecloud.switch_user_service'),