baseline: 批次A-D 成果 + membership 半成品(测试红)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""商品中心 URL。"""
|
||||
|
||||
from django.urls import path, include
|
||||
from adrf.routers import DefaultRouter as ADRouter
|
||||
from .views import CategoryViewSet, BrandViewSet, UnitViewSet, ProductViewSet
|
||||
|
||||
|
||||
router = ADRouter()
|
||||
router.register("categories", CategoryViewSet, basename="category")
|
||||
router.register("brands", BrandViewSet, basename="brand")
|
||||
router.register("units", UnitViewSet, basename="unit")
|
||||
router.register("products", ProductViewSet, basename="product")
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("", include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user