33 lines
639 B
Python
33 lines
639 B
Python
"""all api urls"""
|
|
|
|
from api.views import (
|
|
ChannelApiView,
|
|
DownloadApiView,
|
|
PlaylistApiView,
|
|
VideoApiView,
|
|
)
|
|
from django.urls import path
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"video/<slug:video_id>/",
|
|
VideoApiView.as_view(),
|
|
name="api-video",
|
|
),
|
|
path(
|
|
"channel/<slug:channel_id>/",
|
|
ChannelApiView.as_view(),
|
|
name="api-channel",
|
|
),
|
|
path(
|
|
"playlist/<slug:playlist_id>/",
|
|
PlaylistApiView.as_view(),
|
|
name="api-playlist",
|
|
),
|
|
path(
|
|
"download/<slug:video_id>/",
|
|
DownloadApiView.as_view(),
|
|
name="api-download",
|
|
),
|
|
]
|