17 lines
505 B
Python
17 lines
505 B
Python
from rest_framework.routers import DefaultRouter
|
|
|
|
from apps.reservations.views import (
|
|
FacilityScheduleViewSet,
|
|
FacilityViewSet,
|
|
ReservationViewSet,
|
|
SlotViewSet,
|
|
)
|
|
|
|
router = DefaultRouter()
|
|
router.register("facilities", FacilityViewSet, basename="facility")
|
|
router.register("schedules", FacilityScheduleViewSet, basename="facility-schedule")
|
|
router.register("slots", SlotViewSet, basename="slot")
|
|
router.register("", ReservationViewSet, basename="reservation")
|
|
|
|
urlpatterns = router.urls
|