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.

55 lines
2.7 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'^hipchat/callback/$', views.hipchat_callback, name="hc-hipchat-callback"),
  22. url(r'^add_pushbullet/$', views.add_pushbullet, name="hc-add-pushbullet"),
  23. url(r'^add_discord/$', views.add_discord, name="hc-add-discord"),
  24. url(r'^add_pushover/$', views.add_pushover, name="hc-add-pushover"),
  25. url(r'^add_opsgenie/$', views.add_opsgenie, name="hc-add-opsgenie"),
  26. url(r'^add_victorops/$', views.add_victorops, name="hc-add-victorops"),
  27. url(r'^telegram/bot/$', views.telegram_bot),
  28. url(r'^add_telegram/$', views.add_telegram, name="hc-add-telegram"),
  29. url(r'^add_sms/$', views.add_sms, name="hc-add-sms"),
  30. url(r'^([\w-]+)/checks/$', views.channel_checks, name="hc-channel-checks"),
  31. url(r'^([\w-]+)/remove/$', views.remove_channel, name="hc-remove-channel"),
  32. url(r'^([\w-]+)/verify/([\w-]+)/$', views.verify_email,
  33. name="hc-verify-email"),
  34. url(r'^([\w-]+)/unsub/([\w-]+)/$', views.unsubscribe_email,
  35. name="hc-unsubscribe-alerts"),
  36. ]
  37. urlpatterns = [
  38. url(r'^$', views.index, name="hc-index"),
  39. url(r'^checks/$', views.my_checks, name="hc-checks"),
  40. url(r'^checks/add/$', views.add_check, name="hc-add-check"),
  41. url(r'^checks/cron_preview/$', views.cron_preview),
  42. url(r'^checks/([\w-]+)/', include(check_urls)),
  43. url(r'^integrations/', include(channel_urls)),
  44. url(r'^docs/$', views.docs, name="hc-docs"),
  45. url(r'^docs/api/$', views.docs_api, name="hc-docs-api"),
  46. url(r'^docs/cron/$', views.docs_cron, name="hc-docs-cron"),
  47. url(r'^about/$', views.about, name="hc-about"),
  48. url(r'^privacy/$', views.privacy, name="hc-privacy"),
  49. url(r'^terms/$', views.terms, name="hc-terms"),
  50. ]