from django.urls import path from django.views.decorators.cache import cache_page from django.views.decorators.vary import vary_on_cookie from .views import HeartBeatCheckView, StatusPageDetailView urlpatterns = [ path( "api/0/organizations//heartbeat_check//", HeartBeatCheckView.as_view(), name="heartbeat-check", ), path( "status-pages///", cache_page(60)(vary_on_cookie(StatusPageDetailView.as_view())), name="status-page-detail", ), ]