from django.urls import path from .views import * app_name = 'video' urlpatterns = [ path('categories/', VideoCategoryListAPIView.as_view(), name='category-list'), path('pinned-collections/', PinnedVideoCollectionListView.as_view(), name='pinned-collection-list'), path('collections/', MiddleVideoCollectionListView.as_view(), name='collection-list'), path('playlists/', VideoPlaylistListAPIView.as_view(), name='playlist-list'), path('playlists//', VideoPlaylistDetailAPIView.as_view(), name='playlist-detail'), # Keep old video endpoints for backward compatibility if needed path('list/', VideoPlaylistListAPIView.as_view(), name='video-list'), path('detail//', VideoPlaylistDetailAPIView.as_view(), name='video-detail'), ]