mirror of
https://github.com/andwati/store-api.git
synced 2026-11-29 03:48:46 +00:00
model changes
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from .views import BrandViewSet
|
||||
from .views import ProductViewSet
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r"Brands", BrandViewSet)
|
||||
router.register(r"Products", ProductViewSet)
|
||||
urlpatterns = router.urls
|
||||
|
||||
Reference in New Issue
Block a user