SOITA/categories/urls.py

9 lines
220 B
Python
Raw Normal View History

2021-12-12 11:35:35 +01:00
from rest_framework.routers import DefaultRouter
from categories.views import CategoryModelViewSet
2021-12-13 23:22:11 +01:00
router = DefaultRouter(trailing_slash=False)
2021-12-12 11:35:35 +01:00
router.register("items", CategoryModelViewSet)
urlpatterns = router.urls