from django.urls import include, path
from rest_framework.routers import DefaultRouter

from rooms import views

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r"room", views.RoomViewSet, basename="room")

# The API URLs are now determined automatically by the router.
urlpatterns = [
    path("", include(router.urls)),
]

from django.urls import include, path
from rest_framework.routers import DefaultRouter

from rooms import views

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r"room", views.RoomViewSet, basename="room")

# The API URLs are now determined automatically by the router.
urlpatterns = [
    path("", include(router.urls)),
]

# Create a router and register our viewsets with it. # The API URLs are now determined automatically by the router.