Skip to content

Commit

Permalink
Deploy async healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed Mar 8, 2024
1 parent 76b534d commit fe9266d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hub/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

from hub.mixins import TitleMixin
from hub.models import Area, DataSet
from django.http import HttpResponse


async def async_healthcheck(request):
return HttpResponse("Hello, async Django!")


class NotFoundPageView(TitleMixin, TemplateView):
Expand Down
1 change: 1 addition & 0 deletions local_intelligence_hub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

urlpatterns = [
path("", core.HomePageView.as_view(), name="home"),
path("async-healthcheck", core.async_healthcheck),
path("explore/", explore.ExploreView.as_view(), name="explore"),
path(
"explore/datasets.json",
Expand Down

0 comments on commit fe9266d

Please sign in to comment.