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.urls import include, path
  2. from hc.front import views
  3. check_urls = [
  4. path('name/', views.update_name, name="hc-update-name"),
  5. path('timeout/', views.update_timeout, name="hc-update-timeout"),
  6. path('pause/', views.pause, name="hc-pause"),
  7. path('remove/', views.remove_check, name="hc-remove-check"),
  8. path('log/', views.log, name="hc-log"),
  9. path('last_ping/', views.ping_details, name="hc-last-ping"),
  10. path('pings/<int:n>/', views.ping_details, name="hc-ping-details"),
  11. ]
  12. channel_urls = [
  13. path('', views.channels, name="hc-channels"),
  14. path('add_email/', views.add_email, name="hc-add-email"),
  15. path('add_webhook/', views.add_webhook, name="hc-add-webhook"),
  16. path('add_pd/', views.add_pd, name="hc-add-pd"),
  17. path('add_pd/<str:state>/', views.add_pd, name="hc-add-pd-state"),
  18. path('add_pagertree/', views.add_pagertree, name="hc-add-pagertree"),
  19. path('add_slack/', views.add_slack, name="hc-add-slack"),
  20. path('add_slack_btn/', views.add_slack_btn, name="hc-add-slack-btn"),
  21. path('add_hipchat/', views.add_hipchat, name="hc-add-hipchat"),
  22. path('hipchat/capabilities/', views.hipchat_capabilities, name="hc-hipchat-capabilities"),
  23. path('add_pushbullet/', views.add_pushbullet, name="hc-add-pushbullet"),
  24. path('add_discord/', views.add_discord, name="hc-add-discord"),
  25. path('add_pushover/', views.add_pushover, name="hc-add-pushover"),
  26. path('add_opsgenie/', views.add_opsgenie, name="hc-add-opsgenie"),
  27. path('add_victorops/', views.add_victorops, name="hc-add-victorops"),
  28. path('telegram/bot/', views.telegram_bot, name="hc-telegram-webhook"),
  29. path('add_telegram/', views.add_telegram, name="hc-add-telegram"),
  30. path('add_sms/', views.add_sms, name="hc-add-sms"),
  31. path('add_zendesk/', views.add_zendesk, name="hc-add-zendesk"),
  32. path('<uuid:code>/checks/', views.channel_checks, name="hc-channel-checks"),
  33. path('<uuid:code>/remove/', views.remove_channel, name="hc-remove-channel"),
  34. path('<uuid:code>/verify/<slug:token>/', views.verify_email,
  35. name="hc-verify-email"),
  36. path('<uuid:code>/unsub/<slug:token>/', views.unsubscribe_email,
  37. name="hc-unsubscribe-alerts"),
  38. ]
  39. urlpatterns = [
  40. path('', views.index, name="hc-index"),
  41. path('checks/', views.my_checks, name="hc-checks"),
  42. path('checks/add/', views.add_check, name="hc-add-check"),
  43. path('checks/cron_preview/', views.cron_preview),
  44. path('checks/status/', views.status),
  45. path('checks/<uuid:code>/', include(check_urls)),
  46. path('integrations/', include(channel_urls)),
  47. path('docs/', views.docs, name="hc-docs"),
  48. path('docs/api/', views.docs_api, name="hc-docs-api"),
  49. path('docs/cron/', views.docs_cron, name="hc-docs-cron"),
  50. ]