2022-05-05 15:40:57 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2022-05-08 13:37:29 +00:00
|
|
|
from .views import PlaylistView, VideoView, RandomView
|
2022-05-05 15:40:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', PlaylistView.as_view(), name="home"),
|
|
|
|
path('video/<slug:pk>/', VideoView.as_view(), name="video"),
|
|
|
|
path('playlist/<slug:pk>/', PlaylistView.as_view(), name="playlist"),
|
2022-05-08 13:37:29 +00:00
|
|
|
path('random/', RandomView.as_view(), name="randomvideo"),
|
2022-05-05 15:40:57 +00:00
|
|
|
]
|