Search ads uchun api chiqarildi
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from core.apps.api.views import CategoryHomeApiViewSet, CategoryViewSet, HomeAdApiView, SearchHistoryViewSet, \
|
||||
UserLikeViewSet, NotificationViewSet, BannerViewSet
|
||||
from core.apps.api.views import (
|
||||
BannerViewSet,
|
||||
CategoryHomeApiViewSet,
|
||||
CategoryViewSet,
|
||||
HomeAdApiView,
|
||||
NotificationViewSet,
|
||||
SearchAdsViewSet,
|
||||
SearchHistoryViewSet,
|
||||
UserLikeViewSet,
|
||||
)
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register("search-ads", SearchAdsViewSet, basename="search-ads")
|
||||
router.register("banner", BannerViewSet, basename="banner")
|
||||
router.register("notification", NotificationViewSet, basename="notification")
|
||||
router.register("user-like", UserLikeViewSet, basename="user-like")
|
||||
|
||||
Reference in New Issue
Block a user