urls.py 568 B

123456789101112131415161718
  1. from django.urls import path
  2. from django.views.decorators.cache import cache_page
  3. from django.views.decorators.vary import vary_on_cookie
  4. from .views import HeartBeatCheckView, StatusPageDetailView
  5. urlpatterns = [
  6. path(
  7. "api/0/organizations/<slug:organization_slug>/heartbeat_check/<uuid:endpoint_id>/",
  8. HeartBeatCheckView.as_view(),
  9. name="heartbeat-check",
  10. ),
  11. path(
  12. "status-pages/<organization>/<slug>/",
  13. cache_page(60)(vary_on_cookie(StatusPageDetailView.as_view())),
  14. name="status-page-detail",
  15. ),
  16. ]