Commit cf47683e authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

pithos: Fix pithos views url prefix

parent 250d2375
......@@ -68,8 +68,9 @@ pithos_view_patterns = patterns(
(r'^(?P<v_account>.+?)/(?P<v_container>.+?)/(?P<v_object>.+?)$',
'object_read'))
pithos_patterns = []
if SERVE_API:
pithos_patterns = patterns(
pithos_patterns += patterns(
'',
(r'{0}v1/'.format(prefix_pattern(PITHOS_PREFIX)),
include(pithos_api_patterns)),
......@@ -79,7 +80,7 @@ if SERVE_API:
'pithos.api.public.public_demux'),
)
urlpatterns += patterns(
pithos_patterns += patterns(
'',
(r'{0}'.format(prefix_pattern(VIEW_PREFIX)),
include(pithos_view_patterns)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment