forked from hacktoolkit/django-htk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
35 lines (30 loc) · 1.32 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
# Django Imports
from django.conf import settings
from django.conf.urls import (
include,
url,
)
# HTK Imports
import htk.views as views
urlpatterns = (
url(r'^health_check$', views.health_check, name='health_check'),
url(r'^robots\.txt$', views.robots, name='robots'),
url(r'^google(?P<code>[a-z0-9]+)\.html$', views.google_site_verification, name='google_site_verification'),
url(r'^(?P<code>.+)--\.html$', views.html_site_verification, name='html_site_verification'),
url(r'^BingSiteAuth\.xml$', views.bing_site_auth, name='bing_site_auth'),
url(r'^.well-known/brave-rewards-verification.txt$', views.brave_rewards_verification, name='brave_rewards_verification'),
url(r'^redir$', views.redir, name='redir'),
)
if 'htk.apps.maintenance_mode' in settings.INSTALLED_APPS:
urlpatterns += (
url(r'', include('htk.apps.maintenance_mode.urls')),
)
if settings.TEST or settings.ENV_DEV:
urlpatterns += (
url(r'^400$', views.error_view, name='error_400'),
url(r'^403$', views.error_view, name='error_403'),
url(r'^404$', views.error_view, name='error_404'),
url(r'^500$', views.error_view, name='error_500'),
url(r'^browser_info$', views.browser_info, name='tools_browser_info'),
url(r'^debugger$', views.debugger, name='tools_debugger'),
)