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.

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