gault-millau/apps/comment/urls/common.py

13 lines
355 B
Python

"""Comment urlpaths."""
from django.urls import path
from comment.views import common as views
app_name = 'comment'
urlpatterns = [
path('', views.CommentListView.as_view(), name='comment-list'),
path('create/', views.CommentCreateView.as_view(), name='comment-create'),
path('<int:pk>/', views.CommentRUD.as_view(), name='comment-rud'),
]