from django.urls import include, path from rest_framework.routers import DefaultRouter from .views import * urlpatterns = [ path('links/', LinkAPIView.as_view(), name='LinkAPIView'), path('news/', NewsAPIView.as_view(), name='NewsAPIView'), path('carousels/', CarouselsAPIView.as_view(), name='CarouselsAPIView'), ]