29 строки
1014 B
Python
29 строки
1014 B
Python
import csp.views
|
|
|
|
from django.conf.urls.defaults import patterns, url, include
|
|
from django.views.decorators.cache import never_cache
|
|
|
|
from . import views
|
|
|
|
services_patterns = patterns('',
|
|
url('^monitor(.json)?$', never_cache(views.monitor),
|
|
name='amo.monitor'),
|
|
url('^paypal$', never_cache(views.paypal), name='amo.paypal'),
|
|
url('^loaded$', never_cache(views.loaded), name='amo.loaded'),
|
|
url('^csp/policy$', csp.views.policy, name='amo.csp.policy'),
|
|
url('^csp/report$', views.cspreport, name='amo.csp.report'),
|
|
url('^builder-pingback', views.builder_pingback,
|
|
name='amo.builder-pingback'),
|
|
url('^graphite/(pamo|namo|amo)$', views.graphite, name='amo.graphite'),
|
|
)
|
|
|
|
urlpatterns = patterns('',
|
|
url('^robots.txt$', views.robots, name='robots.txt'),
|
|
('^services/', include(services_patterns)),
|
|
|
|
url('^opensearch.xml$', 'api.views.render_xml',
|
|
{'template': 'amo/opensearch.xml'},
|
|
name='amo.opensearch'),
|
|
|
|
)
|