9 lines
200 B
Python
9 lines
200 B
Python
![]() |
from rest_framework.routers import DefaultRouter
|
||
|
|
||
|
from categories.views import CategoryModelViewSet
|
||
|
|
||
|
router = DefaultRouter()
|
||
|
router.register("items", CategoryModelViewSet)
|
||
|
|
||
|
urlpatterns = router.urls
|