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.

43 lines
1.9 KiB

  1. from django.conf.urls import include, url
  2. from hc.front import views
  3. check_urls = [
  4. url(r'^name/$', views.update_name, name="hc-update-name"),
  5. url(r'^timeout/$', views.update_timeout, name="hc-update-timeout"),
  6. url(r'^pause/$', views.pause, name="hc-pause"),
  7. url(r'^remove/$', views.remove_check, name="hc-remove-check"),
  8. url(r'^log/$', views.log, name="hc-log"),
  9. ]
  10. channel_urls = [
  11. url(r'^$', views.channels, name="hc-channels"),
  12. url(r'^add/$', views.add_channel, name="hc-add-channel"),
  13. url(r'^add_email/$', views.add_email, name="hc-add-email"),
  14. url(r'^add_webhook/$', views.add_webhook, name="hc-add-webhook"),
  15. url(r'^add_pd/$', views.add_pd, name="hc-add-pd"),
  16. url(r'^add_slack/$', views.add_slack, name="hc-add-slack"),
  17. url(r'^add_slack_btn/$', views.add_slack_btn, name="hc-add-slack-btn"),
  18. url(r'^add_hipchat/$', views.add_hipchat, name="hc-add-hipchat"),
  19. url(r'^add_pushbullet/$', views.add_pushbullet, name="hc-add-pushbullet"),
  20. url(r'^add_pushover/$', views.add_pushover, name="hc-add-pushover"),
  21. url(r'^add_victorops/$', views.add_victorops, name="hc-add-victorops"),
  22. url(r'^([\w-]+)/checks/$', views.channel_checks, name="hc-channel-checks"),
  23. url(r'^([\w-]+)/remove/$', views.remove_channel, name="hc-remove-channel"),
  24. url(r'^([\w-]+)/verify/([\w-]+)/$', views.verify_email,
  25. name="hc-verify-email"),
  26. ]
  27. urlpatterns = [
  28. url(r'^$', views.index, name="hc-index"),
  29. url(r'^checks/$', views.my_checks, name="hc-checks"),
  30. url(r'^checks/add/$', views.add_check, name="hc-add-check"),
  31. url(r'^checks/([\w-]+)/', include(check_urls)),
  32. url(r'^integrations/', include(channel_urls)),
  33. url(r'^docs/$', views.docs, name="hc-docs"),
  34. url(r'^docs/api/$', views.docs_api, name="hc-docs-api"),
  35. url(r'^about/$', views.about, name="hc-about"),
  36. url(r'^privacy/$', views.privacy, name="hc-privacy"),
  37. url(r'^terms/$', views.terms, name="hc-terms"),
  38. ]