Files

18 lines
569 B
Python

from django.urls import path
from .views import (
ContentDetailView,
ContentListView,
FavoriteView,
VideoCatalogView,
VideoCompleteView,
)
urlpatterns = [
path("", ContentListView.as_view(), name="content-list"),
path("videos/catalog/", VideoCatalogView.as_view(), name="video-catalog"),
path("<slug:slug>/", ContentDetailView.as_view(), name="content-detail"),
path("<slug:slug>/favorite/", FavoriteView.as_view(), name="content-favorite"),
path("<slug:slug>/complete/", VideoCompleteView.as_view(), name="video-complete"),
]