oncall-engine/engine/apps/oss_installation/urls.py

18 lines
709 B
Python
Raw Permalink Normal View History

2022-06-08 15:04:23 +04:00
from django.urls import include, path
2022-06-04 16:49:10 +04:00
2022-06-08 15:04:23 +04:00
from common.api_helpers.optional_slash_router import OptionalSlashRouter, optional_slash_path
from .views import CloudConnectionView, CloudHeartbeatView, CloudUsersView, CloudUserView
app_name = "oss_installation"
2022-06-08 15:04:23 +04:00
router = OptionalSlashRouter()
router.register("cloud_users", CloudUserView, basename="cloud-users")
urlpatterns = [
2022-06-08 15:04:23 +04:00
path("", include(router.urls)),
2022-06-04 16:49:10 +04:00
optional_slash_path("cloud_users", CloudUsersView.as_view(), name="cloud-users-list"),
2022-06-06 16:02:09 +04:00
optional_slash_path("cloud_connection", CloudConnectionView.as_view(), name="cloud-connection-status"),
optional_slash_path("cloud_heartbeat", CloudHeartbeatView.as_view(), name="cloud-heartbeat"),
]