2024-01-09 15:30:36 +01:00
|
|
|
"""URL configuration for the core app."""
|
2024-07-30 16:48:26 +02:00
|
|
|
|
2024-01-09 15:30:36 +01:00
|
|
|
from django.conf import settings
|
|
|
|
|
from django.urls import include, path
|
|
|
|
|
|
2025-04-10 13:45:56 +02:00
|
|
|
from lasuite.oidc_login.urls import urlpatterns as oidc_urls
|
2024-01-09 15:30:36 +01:00
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
2024-09-24 21:43:13 +02:00
|
|
|
from core.api import get_frontend_configuration, viewsets
|
2024-01-09 15:30:36 +01:00
|
|
|
|
|
|
|
|
# - Main endpoints
|
|
|
|
|
router = DefaultRouter()
|
|
|
|
|
router.register("users", viewsets.UserViewSet, basename="users")
|
2024-06-25 00:21:36 +02:00
|
|
|
router.register("rooms", viewsets.RoomViewSet, basename="rooms")
|
2024-11-06 17:00:23 +01:00
|
|
|
router.register("recordings", viewsets.RecordingViewSet, basename="recordings")
|
2024-06-25 00:21:36 +02:00
|
|
|
router.register(
|
|
|
|
|
"resource-accesses", viewsets.ResourceAccessViewSet, basename="resource_accesses"
|
|
|
|
|
)
|
2024-01-09 15:30:36 +01:00
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path(
|
|
|
|
|
f"api/{settings.API_VERSION}/",
|
|
|
|
|
include(
|
|
|
|
|
[
|
|
|
|
|
*router.urls,
|
|
|
|
|
*oidc_urls,
|
2024-09-24 21:43:13 +02:00
|
|
|
path("config/", get_frontend_configuration, name="config"),
|
2024-01-09 15:30:36 +01:00
|
|
|
]
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]
|