18 lines
473 B
Python
18 lines
473 B
Python
![]() |
from django.urls import path, include
|
||
|
from rest_framework.routers import DefaultRouter
|
||
|
from .views import (
|
||
|
BrandViewSet,
|
||
|
ProductViewSet,
|
||
|
CampaignViewSet,
|
||
|
BrandChatSessionViewSet
|
||
|
)
|
||
|
|
||
|
router = DefaultRouter()
|
||
|
router.register(r'brands', BrandViewSet)
|
||
|
router.register(r'products', ProductViewSet)
|
||
|
router.register(r'campaigns', CampaignViewSet)
|
||
|
router.register(r'chat-sessions', BrandChatSessionViewSet)
|
||
|
|
||
|
urlpatterns = [
|
||
|
path('', include(router.urls)),
|
||
|
]
|