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.

47 lines
2.2 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_email/$', views.add_email, name="hc-add-email"),
  13. url(r'^add_webhook/$', views.add_webhook, name="hc-add-webhook"),
  14. url(r'^add_pd/$', views.add_pd, name="hc-add-pd"),
  15. url(r'^add_slack/$', views.add_slack, name="hc-add-slack"),
  16. url(r'^add_slack_btn/$', views.add_slack_btn, name="hc-add-slack-btn"),
  17. url(r'^add_hipchat/$', views.add_hipchat, name="hc-add-hipchat"),
  18. url(r'^add_pushbullet/$', views.add_pushbullet, name="hc-add-pushbullet"),
  19. url(r'^add_discord/$', views.add_discord, name="hc-add-discord"),
  20. url(r'^add_pushover/$', views.add_pushover, name="hc-add-pushover"),
  21. url(r'^add_opsgenie/$', views.add_opsgenie, name="hc-add-opsgenie"),
  22. url(r'^add_victorops/$', views.add_victorops, name="hc-add-victorops"),
  23. url(r'^([\w-]+)/checks/$', views.channel_checks, name="hc-channel-checks"),
  24. url(r'^([\w-]+)/remove/$', views.remove_channel, name="hc-remove-channel"),
  25. url(r'^([\w-]+)/verify/([\w-]+)/$', views.verify_email,
  26. name="hc-verify-email"),
  27. url(r'^([\w-]+)/unsub/([\w-]+)/$', views.unsubscribe_email,
  28. name="hc-unsubscribe-alerts"),
  29. ]
  30. urlpatterns = [
  31. url(r'^$', views.index, name="hc-index"),
  32. url(r'^checks/$', views.my_checks, name="hc-checks"),
  33. url(r'^checks/add/$', views.add_check, name="hc-add-check"),
  34. url(r'^checks/cron_preview/$', views.cron_preview),
  35. url(r'^checks/([\w-]+)/', include(check_urls)),
  36. url(r'^integrations/', include(channel_urls)),
  37. url(r'^docs/$', views.docs, name="hc-docs"),
  38. url(r'^docs/api/$', views.docs_api, name="hc-docs-api"),
  39. url(r'^about/$', views.about, name="hc-about"),
  40. url(r'^privacy/$', views.privacy, name="hc-privacy"),
  41. url(r'^terms/$', views.terms, name="hc-terms"),
  42. ]