from django.urls import path, include
from .views import PlaceViewSet, BookingViewSet, PlaceBookingViewSet

from rest_framework import routers

router = routers.DefaultRouter()
router.register("properties", PlaceViewSet, basename="properties")
router.register("bookings", BookingViewSet, basename="bookings")
router.register(
    r"properties/(?P<property_id>[0-9a-f-]+)/bookings",
    PlaceBookingViewSet,
    basename="properties-bookings",
)

urlpatterns = [
    path("api/", include(router.urls)),
]

e2aa5c0d03ddd18d410c95e295f258f79a20c75f
<mask token>

<mask token>
router.register('properties', PlaceViewSet, basename='properties')
router.register('bookings', BookingViewSet, basename='bookings')
router.register('properties/(?P<property_id>[0-9a-f-]+)/bookings',
    PlaceBookingViewSet, basename='properties-bookings')
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('properties', PlaceViewSet, basename='properties')
router.register('bookings', BookingViewSet, basename='bookings')
router.register('properties/(?P<property_id>[0-9a-f-]+)/bookings',
    PlaceBookingViewSet, basename='properties-bookings')
urlpatterns = [path('api/', include(router.urls))]

from django.urls import path, include
from .views import PlaceViewSet, BookingViewSet, PlaceBookingViewSet
from rest_framework import routers
router = routers.DefaultRouter()
router.register('properties', PlaceViewSet, basename='properties')
router.register('bookings', BookingViewSet, basename='bookings')
router.register('properties/(?P<property_id>[0-9a-f-]+)/bookings',
    PlaceBookingViewSet, basename='properties-bookings')
urlpatterns = [path('api/', include(router.urls))]

from django.urls import path, include
from .views import PlaceViewSet, BookingViewSet, PlaceBookingViewSet

from rest_framework import routers

router = routers.DefaultRouter()
router.register("properties", PlaceViewSet, basename="properties")
router.register("bookings", BookingViewSet, basename="bookings")
router.register(
    r"properties/(?P<property_id>[0-9a-f-]+)/bookings",
    PlaceBookingViewSet,
    basename="properties-bookings",
)

urlpatterns = [
    path("api/", include(router.urls)),
]
