-
Notifications
You must be signed in to change notification settings - Fork 46
/
urls.py
49 lines (44 loc) · 1.48 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Django Imports
from django.conf import settings
from django.urls import (
include,
re_path,
)
# HTK Imports
import htk.views as views
urlpatterns = (
re_path(r'^health_check$', views.health_check, name='health_check'),
re_path(r'^robots\.txt$', views.robots, name='robots'),
re_path(
r'^google(?P<code>[a-z0-9]+)\.html$',
views.google_site_verification,
name='google_site_verification',
),
re_path(
r'^(?P<code>.+)--\.html$',
views.html_site_verification,
name='html_site_verification',
),
re_path(
r'^BingSiteAuth\.xml$', views.bing_site_auth, name='bing_site_auth'
),
re_path(
r'^.well-known/brave-rewards-verification.txt$',
views.brave_rewards_verification,
name='brave_rewards_verification',
),
re_path(r'^redir$', views.redir, name='redir'),
)
if 'htk.apps.maintenance_mode' in settings.INSTALLED_APPS:
urlpatterns += (re_path(r'', include('htk.apps.maintenance_mode.urls')),)
if settings.TEST or settings.ENV_DEV:
urlpatterns += (
re_path(r'^400$', views.error_view, name='error_400'),
re_path(r'^403$', views.error_view, name='error_403'),
re_path(r'^404$', views.error_view, name='error_404'),
re_path(r'^500$', views.error_view, name='error_500'),
re_path(
r'^browser_info$', views.browser_info, name='tools_browser_info'
),
re_path(r'^debugger$', views.debugger, name='tools_debugger'),
)