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
|
2022-06-03 08:09:47 -06:00
|
|
|
|
2022-06-13 16:29:08 +04:00
|
|
|
from .views import CloudConnectionView, CloudHeartbeatView, CloudUsersView, CloudUserView
|
2022-06-03 08:09:47 -06:00
|
|
|
|
2023-01-23 11:17:57 +00:00
|
|
|
app_name = "oss_installation"
|
|
|
|
|
|
2022-06-08 15:04:23 +04:00
|
|
|
router = OptionalSlashRouter()
|
|
|
|
|
router.register("cloud_users", CloudUserView, basename="cloud-users")
|
|
|
|
|
|
2022-06-03 08:09:47 -06:00
|
|
|
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"),
|
2022-06-13 16:29:08 +04:00
|
|
|
optional_slash_path("cloud_heartbeat", CloudHeartbeatView.as_view(), name="cloud-heartbeat"),
|
2022-06-03 08:09:47 -06:00
|
|
|
]
|