inital commit
This commit is contained in:
19
adventrues/urls.py
Normal file
19
adventrues/urls.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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"),
|
||||
]
|
||||
Reference in New Issue
Block a user