Another round of fixing chatops urls

This commit is contained in:
Innokentii Konstantinov 2024-01-22 15:25:47 +08:00
parent 89b6b06879
commit 3a2cb99ac9

View file

@ -53,16 +53,12 @@ if settings.FEATURE_PROMETHEUS_EXPORTER_ENABLED:
if settings.FEATURE_TELEGRAM_INTEGRATION_ENABLED:
urlpatterns += [
path("telegram/", include("apps.telegram.urls")),
# urls for chatops-proxy v3. Currently, they are experimental.
path("api/v3/webhook/telegram/", include("apps.telegram.urls", namespace="telegram_v3")),
]
if settings.FEATURE_SLACK_INTEGRATION_ENABLED:
urlpatterns += [
path("api/internal/v1/slack/", include("apps.slack.urls")),
path("slack/", include("apps.slack.urls")),
# urls for chatops-proxy v3. Currently, they are experimental.
path("api/v3/webhook/slack/", include("apps.slack.urls"), name="slack_v3"),
]
if settings.IS_OPEN_SOURCE: