9 lines
275 B
Python
9 lines
275 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from core.apps.api.views import CategoryViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register("category", CategoryViewSet, basename="category")
|
|
urlpatterns = [path("", include(router.urls))]
|