aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-16 20:54:01 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-16 20:54:01 +0200
commit9766d41be89a6889b3c99af890f362e18f57d391 (patch)
tree9aa20328d1f374a49e8363e1efa3fc5cd2634900 /api/urls.py
parentSmall documentation fixes. (diff)
Add a `HealthcheckView`.
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/urls.py b/api/urls.py
index dfc739bb..b0e104cd 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -1,6 +1,7 @@
from django.urls import include, path
from rest_framework.routers import SimpleRouter
+from .views import HealthcheckView
from .viewsets import SnakeNameViewSet
@@ -15,4 +16,5 @@ urlpatterns = (
# from django_hosts.resolvers import reverse
# snake_name_endpoint = reverse('bot:snakename-list', host='api') # `bot/` endpoints
path('bot/', include((bot_router.urls, 'api'), namespace='bot')),
+ path('healthcheck', HealthcheckView.as_view(), name='healthcheck')
)