|
|
@ -31,7 +31,6 @@ channel_urls = [ |
|
|
|
path("add_pagertree/", views.add_pagertree, name="hc-add-pagertree"), |
|
|
|
path("add_pagerteam/", views.add_pagerteam, name="hc-add-pagerteam"), |
|
|
|
path("add_slack/", views.add_slack, name="hc-add-slack"), |
|
|
|
path("add_mattermost/", views.add_mattermost, name="hc-add-mattermost"), |
|
|
|
path("add_slack_btn/", views.add_slack_btn, name="hc-add-slack-btn"), |
|
|
|
path("add_pushbullet/", views.add_pushbullet, name="hc-add-pushbullet"), |
|
|
|
path("add_discord/", views.add_discord, name="hc-add-discord"), |
|
|
@ -61,21 +60,26 @@ channel_urls = [ |
|
|
|
), |
|
|
|
] |
|
|
|
|
|
|
|
project_urls = [ |
|
|
|
path("add_email/", views.add_email, name="hc-add-email"), |
|
|
|
path("add_matrix/", views.add_matrix, name="hc-add-matrix"), |
|
|
|
path("add_mattermost/", views.add_mattermost, name="hc-add-mattermost"), |
|
|
|
path("add_webhook/", views.add_webhook, name="hc-add-webhook"), |
|
|
|
path("badges/", views.badges, name="hc-badges"), |
|
|
|
path("checks/", views.my_checks, name="hc-checks"), |
|
|
|
path("checks/add/", views.add_check, name="hc-add-check"), |
|
|
|
path("checks/metrics/<slug:key>", views.metrics,), |
|
|
|
path("metrics/<slug:key>", views.metrics, name="hc-metrics",), |
|
|
|
path("checks/status/", views.status, name="hc-status"), |
|
|
|
path("integrations/", views.channels, name="hc-p-channels"), |
|
|
|
] |
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
path("", views.index, name="hc-index"), |
|
|
|
path("projects/<uuid:code>/checks/", views.my_checks, name="hc-checks"), |
|
|
|
path("projects/<uuid:code>/badges/", views.badges, name="hc-badges"), |
|
|
|
path("projects/<uuid:code>/checks/add/", views.add_check, name="hc-add-check"), |
|
|
|
path("checks/cron_preview/", views.cron_preview), |
|
|
|
path("projects/<uuid:code>/checks/status/", views.status, name="hc-status"), |
|
|
|
path("projects/<uuid:code>/checks/metrics/<slug:key>", views.metrics,), |
|
|
|
path("projects/<uuid:code>/metrics/<slug:key>", views.metrics, name="hc-metrics",), |
|
|
|
path("checks/<uuid:code>/", include(check_urls)), |
|
|
|
path("integrations/", include(channel_urls)), |
|
|
|
path("projects/<uuid:code>/integrations/", views.channels, name="hc-p-channels"), |
|
|
|
path("projects/<uuid:code>/add_email/", views.add_email, name="hc-add-email"), |
|
|
|
path("projects/<uuid:code>/add_matrix/", views.add_matrix, name="hc-add-matrix"), |
|
|
|
path("projects/<uuid:code>/add_webhook/", views.add_webhook, name="hc-add-webhook"), |
|
|
|
path("projects/<uuid:code>/", include(project_urls)), |
|
|
|
path("docs/", views.serve_doc, name="hc-docs"), |
|
|
|
path("docs/api/", views.docs_api, name="hc-docs-api"), |
|
|
|
path("docs/cron/", views.docs_cron, name="hc-docs-cron"), |
|
|
|