Files
booking_backend/adventrues/urls.py
2026-04-10 20:51:43 -05:00

20 lines
725 B
Python

from django.urls import include, path
from rest_framework.routers import DefaultRouter
from .views import (
PublicAdventureDetailView,
PublicAdventureListView,
VendorAdventureStorefrontView,
VendorAdventureViewSet,
)
router = DefaultRouter()
router.register("vendor/offerings", VendorAdventureViewSet, basename="vendor-adventure-offering")
urlpatterns = [
path("", include(router.urls)),
path("offerings/", PublicAdventureListView.as_view(), name="adventure_public_list"),
path("offerings/<str:public_id>/", PublicAdventureDetailView.as_view(), name="adventure_public_detail"),
path("storefront/<slug:slug>/", VendorAdventureStorefrontView.as_view(), name="adventure_vendor_storefront"),
]