10 lines
380 B
Python
10 lines
380 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from core.apps.api.views import CategoryViewSet, SearchHistoryViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register("category", CategoryViewSet, basename="category")
|
|
router.register("search-history", SearchHistoryViewSet, basename="search-history")
|
|
urlpatterns = [path("", include(router.urls))]
|