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.

15 lines
583 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. ]