From 9766d41be89a6889b3c99af890f362e18f57d391 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Thu, 16 Aug 2018 20:54:01 +0200 Subject: Add a `HealthcheckView`. --- api/urls.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/urls.py') 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') ) -- cgit v1.2.3