You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
976 B

10 years ago
10 years ago
10 years ago
10 years ago
  1. from django.conf.urls import url
  2. from hc.api import views
  3. urlpatterns = [
  4. url(r'^ping/([\w-]+)/$', views.ping, name="hc-ping-slash"),
  5. url(r'^ping/([\w-]+)$', views.ping, name="hc-ping"),
  6. url(r'^api/v1/checks/$', views.checks),
  7. url(r'^api/v1/checks/([\w-]+)$', views.update, name="hc-api-update"),
  8. url(r'^api/v1/checks/([\w-]+)/pause$', views.pause, name="hc-api-pause"),
  9. url(r'^api/v1/notifications/([\w-]+)/bounce$', views.bounce,
  10. name="hc-api-bounce"),
  11. url(r'^badge/([\w-]+)/([\w-]{8})/([\w-]+).svg$', views.badge,
  12. name="hc-badge"),
  13. url(r'^badge/([\w-]+)/([\w-]{8}).svg$', views.badge,
  14. {"tag": "*"}, name="hc-badge-all"),
  15. url(r'^badge/([\w-]+)/([\w-]{8})/([\w-]+).json$', views.badge,
  16. {"format": "json"}, name="hc-badge-json"),
  17. url(r'^badge/([\w-]+)/([\w-]{8}).json$', views.badge,
  18. {"format": "json", "tag": "*"}, name="hc-badge-json-all"),
  19. url(r'^api/v1/status/$', views.status),
  20. ]