diff options
author | 2018-08-16 20:54:01 +0200 | |
---|---|---|
committer | 2018-08-16 20:54:01 +0200 | |
commit | 9766d41be89a6889b3c99af890f362e18f57d391 (patch) | |
tree | 9aa20328d1f374a49e8363e1efa3fc5cd2634900 /api/urls.py | |
parent | Small documentation fixes. (diff) |
Add a `HealthcheckView`.
Diffstat (limited to 'api/urls.py')
-rw-r--r-- | api/urls.py | 2 |
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') ) |