storage yaratildi
This commit is contained in:
12
core/apps/vendors/urls.py
vendored
Normal file
12
core/apps/vendors/urls.py
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from .views import CategoryView, ProductimageView, VendorproductView, VendorView, SectionView
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register("sections", SectionView, basename="sections")
|
||||
router.register("categories", CategoryView, basename="categories")
|
||||
router.register("vendors", VendorView, basename="vendors")
|
||||
router.register("products", VendorproductView, basename="products")
|
||||
router.register("product-images", ProductimageView, basename="product-images")
|
||||
urlpatterns = [path("", include(router.urls))]
|
||||
Reference in New Issue
Block a user