init
This commit is contained in:
12
backend/product/urls.py
Normal file
12
backend/product/urls.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import ProductViewSet, EventProductViewSet
|
||||
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r'products', ProductViewSet, basename='products')
|
||||
router.register(r'event-products', EventProductViewSet, basename='event-products')
|
||||
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user