Changeset View
Changeset View
Standalone View
Standalone View
swh/web/misc/urls.py
Show All 39 Lines | def _stat_counters(request): | ||||
return HttpResponse(json_data, content_type='application/json') | return HttpResponse(json_data, content_type='application/json') | ||||
urlpatterns = [ | urlpatterns = [ | ||||
url(r'^', include('swh.web.misc.coverage')), | url(r'^', include('swh.web.misc.coverage')), | ||||
url(r'^jslicenses/$', _jslicenses, name='jslicenses'), | url(r'^jslicenses/$', _jslicenses, name='jslicenses'), | ||||
url(r'^', include('swh.web.misc.origin_save')), | url(r'^', include('swh.web.misc.origin_save')), | ||||
url(r'^stat_counters', _stat_counters, name='stat-counters'), | url(r'^stat_counters', _stat_counters, name='stat-counters'), | ||||
url(r'^', include('swh.web.misc.badges')), | |||||
] | ] | ||||
# when running end to end tests trough cypress, declare some extra | # when running end to end tests trough cypress, declare some extra | ||||
# endpoints to provide input data for some of those tests | # endpoints to provide input data for some of those tests | ||||
if get_config()['e2e_tests_mode']: | if get_config()['e2e_tests_mode']: | ||||
from swh.web.tests.data import ( | from swh.web.tests.data import ( | ||||
get_content_code_data_by_ext, | get_content_code_data_by_ext, | ||||
Show All 23 Lines |