Revision 890c2065 snf-pithos-app/pithos/api/urls.py
b/snf-pithos-app/pithos/api/urls.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
from django.conf.urls.defaults import include, patterns |
35 | 35 |
|
36 |
import pithos.api.settings as settings |
|
37 |
|
|
36 | 38 |
# TODO: This only works when in this order. |
37 | 39 |
api_urlpatterns = patterns( |
38 | 40 |
'pithos.api.functions', |
... | ... | |
48 | 50 |
(r'^v1(?:$|/)', include(api_urlpatterns)), |
49 | 51 |
(r'^v1\.0(?:$|/)', include(api_urlpatterns)), |
50 | 52 |
(r'^public/(?P<v_public>.+?)/?$', 'pithos.api.public.public_demux'), |
51 |
(r'^login/?$', 'pithos.api.delegate.delegate_to_login_service'), |
|
52 |
(r'^feedback/?$', 'pithos.api.delegate.delegate_to_feedback_service')) |
|
53 |
(r'^login/?$', 'pithos.api.delegate.delegate_to_login_service')) |
|
54 |
|
|
55 |
if settings.PROXY_USER_SERVICES: |
|
56 |
urlpatterns += patterns( |
|
57 |
'', |
|
58 |
(r'^feedback/?$', 'pithos.api.delegate.delegate_to_feedback_service'), |
|
59 |
(r'^user_catalog/?$', 'pithos.api.delegate.delegate_to_user_catalogs_service')) |
Also available in: Unified diff