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.

54 lines
2.6 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. url(r'^last_ping/$', views.last_ping, name="hc-last-ping"),
  10. ]
  11. channel_urls = [
  12. url(r'^$', views.channels, name="hc-channels"),
  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_pd/([\w]{12})/$', views.add_pd, name="hc-add-pd-state"),
  17. url(r'^add_slack/$', views.add_slack, name="hc-add-slack"),
  18. url(r'^add_slack_btn/$', views.add_slack_btn, name="hc-add-slack-btn"),
  19. url(r'^add_hipchat/$', views.add_hipchat, name="hc-add-hipchat"),
  20. url(r'^hipchat/capabilities/$', views.hipchat_capabilities, name="hc-hipchat-capabilities"),
  21. url(r'^add_pushbullet/$', views.add_pushbullet, name="hc-add-pushbullet"),
  22. url(r'^add_discord/$', views.add_discord, name="hc-add-discord"),
  23. url(r'^add_pushover/$', views.add_pushover, name="hc-add-pushover"),
  24. url(r'^add_opsgenie/$', views.add_opsgenie, name="hc-add-opsgenie"),
  25. url(r'^add_victorops/$', views.add_victorops, name="hc-add-victorops"),
  26. url(r'^telegram/bot/$', views.telegram_bot),
  27. url(r'^add_telegram/$', views.add_telegram, name="hc-add-telegram"),
  28. url(r'^add_sms/$', views.add_sms, name="hc-add-sms"),
  29. url(r'^([\w-]+)/checks/$', views.channel_checks, name="hc-channel-checks"),
  30. url(r'^([\w-]+)/remove/$', views.remove_channel, name="hc-remove-channel"),
  31. url(r'^([\w-]+)/verify/([\w-]+)/$', views.verify_email,
  32. name="hc-verify-email"),
  33. url(r'^([\w-]+)/unsub/([\w-]+)/$', views.unsubscribe_email,
  34. name="hc-unsubscribe-alerts"),
  35. ]
  36. urlpatterns = [
  37. url(r'^$', views.index, name="hc-index"),
  38. url(r'^checks/$', views.my_checks, name="hc-checks"),
  39. url(r'^checks/add/$', views.add_check, name="hc-add-check"),
  40. url(r'^checks/cron_preview/$', views.cron_preview),
  41. url(r'^checks/([\w-]+)/', include(check_urls)),
  42. url(r'^integrations/', include(channel_urls)),
  43. url(r'^docs/$', views.docs, name="hc-docs"),
  44. url(r'^docs/api/$', views.docs_api, name="hc-docs-api"),
  45. url(r'^docs/cron/$', views.docs_cron, name="hc-docs-cron"),
  46. url(r'^about/$', views.about, name="hc-about"),
  47. url(r'^privacy/$', views.privacy, name="hc-privacy"),
  48. url(r'^terms/$', views.terms, name="hc-terms"),
  49. ]