Revision 9b953ed4 snf-pithos-app/pithos/api/urls.py
b/snf-pithos-app/pithos/api/urls.py | ||
---|---|---|
43 | 43 |
BASE_PATH, PITHOS_PREFIX, PUBLIC_PREFIX, VIEW_PREFIX, |
44 | 44 |
ASTAKOS_AUTH_PROXY_PATH, ASTAKOS_AUTH_URL, |
45 | 45 |
ASTAKOS_ACCOUNT_PROXY_PATH, ASTAKOS_ACCOUNT_URL, |
46 |
ASTAKOS_UI_PROXY_PATH, ASTAKOS_UI_URL, SERVE_API, |
|
47 |
pithos_services) |
|
46 |
ASTAKOS_UI_PROXY_PATH, ASTAKOS_UI_URL, pithos_services) |
|
48 | 47 |
|
49 | 48 |
|
50 | 49 |
urlpatterns = [] |
... | ... | |
69 | 68 |
'object_read')) |
70 | 69 |
|
71 | 70 |
pithos_patterns = [] |
72 |
if SERVE_API: |
|
73 |
pithos_patterns += patterns( |
|
74 |
'', |
|
75 |
(r'{0}v1/'.format(prefix_pattern(PITHOS_PREFIX)), |
|
76 |
include(pithos_api_patterns)), |
|
77 |
(r'{0}.*'.format(prefix_pattern(PITHOS_PREFIX)), |
|
78 |
api_endpoint_not_found), |
|
79 |
(r'{0}(?P<v_public>.+?)/?$'.format(prefix_pattern(PUBLIC_PREFIX)), |
|
80 |
'pithos.api.public.public_demux'), |
|
81 |
) |
|
71 |
pithos_patterns += patterns( |
|
72 |
'', |
|
73 |
(r'{0}v1/'.format(prefix_pattern(PITHOS_PREFIX)), |
|
74 |
include(pithos_api_patterns)), |
|
75 |
(r'{0}.*'.format(prefix_pattern(PITHOS_PREFIX)), |
|
76 |
api_endpoint_not_found), |
|
77 |
(r'{0}(?P<v_public>.+?)/?$'.format(prefix_pattern(PUBLIC_PREFIX)), |
|
78 |
'pithos.api.public.public_demux'), |
|
79 |
) |
|
82 | 80 |
|
83 | 81 |
pithos_patterns += patterns( |
84 | 82 |
'', |
Also available in: Unified diff