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.
25 lines
898 B
25 lines
898 B
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/<str:pk_or_slug>/', PostDetailView.as_view(), name='cms_post_detail'),
|
|
path('posts/<str:pk_or_slug>/like/', PostLikeToggleView.as_view(), name='cms_post_like_toggle'),
|
|
path('posts/<str:pk_or_slug>/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'),
|
|
]
|