You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
773 B
17 lines
773 B
from django.urls import path, re_path
|
|
from .views import *
|
|
|
|
app_name = 'podcast'
|
|
|
|
urlpatterns = [
|
|
path('categories/', PodcastCategoryListAPIView.as_view(), name='category-list'),
|
|
path('pinned-collections/', PinnedPodcastCollectionListView.as_view(), name='pinned-collection-list'),
|
|
path('collections/', MiddlePodcastCollectionListView.as_view(), name='collection-list'),
|
|
|
|
path('list/', PodcastListAPIView.as_view(), name='podcast-list'),
|
|
re_path(r'detail/(?P<slug>[\w-]+)/$', PodcastDetailAPIView.as_view(), name='podcast-detail'),
|
|
|
|
# User playlist endpoints
|
|
path('user-playlist/', UserPlaylistCreateAPIView.as_view(), name='user-playlist-create'),
|
|
path('user-playlist/list/', UserPlaylistListAPIView.as_view(), name='user-playlist-list'),
|
|
]
|