from django.urls import path from apps.cms.views import ( PostListCreateView, PostDetailView, PostLikeToggleView, PostCommentsView, PostCategoryListView, PostTagListView, MediaAssetListCreateView, ) urlpatterns = [ # Posts & Articles path('posts/', PostListCreateView.as_view(), name='cms_post_list_create'), path('posts//', PostDetailView.as_view(), name='cms_post_detail'), path('posts//like/', PostLikeToggleView.as_view(), name='cms_post_like_toggle'), path('posts//comments/', PostCommentsView.as_view(), name='cms_post_comments'), # Taxonomies path('categories/', PostCategoryListView.as_view(), name='cms_categories'), path('tags/', PostTagListView.as_view(), name='cms_tags'), # Media Asset Library path('media/', MediaAssetListCreateView.as_view(), name='cms_media'), ]