from django.urls import path

from vozila.views import GetListStandardPostsView, DetailsEditDeleteStandardPostView, CreateLikeDislikeView, \
    CreateAndListCommentsView, DetailsEditDeleteCommentView


"""If likes or dislikes urls are changed change is needed also in like-dislike functionality !!!!!!"""
urlpatterns = [

    path('simple-posts/', GetListStandardPostsView.as_view(), name="simple-posts-all"),
    path('simple-posts/<int:pk>/', DetailsEditDeleteStandardPostView.as_view(), name="simple-post-details"),
    path('simple-posts/likes/<int:pk>/', CreateLikeDislikeView.as_view(), name="like"),
    path('simple-posts/dislikes/<int:pk>/', CreateLikeDislikeView.as_view(), name="dislike"),
    path('simple-posts/comments/', CreateAndListCommentsView.as_view(), name="comments-all"),
    path('simple-posts/comments/<int:pk>/', DetailsEditDeleteCommentView.as_view(), name="comment-edit"),

]



from django.urls import path

from vozila.views import GetListStandardPostsView, DetailsEditDeleteStandardPostView, CreateLikeDislikeView, \
    CreateAndListCommentsView, DetailsEditDeleteCommentView


"""If likes or dislikes urls are changed change is needed also in like-dislike functionality !!!!!!"""
urlpatterns = [

    path('simple-posts/', GetListStandardPostsView.as_view(), name="simple-posts-all"),
    path('simple-posts/<int:pk>/', DetailsEditDeleteStandardPostView.as_view(), name="simple-post-details"),
    path('simple-posts/likes/<int:pk>/', CreateLikeDislikeView.as_view(), name="like"),
    path('simple-posts/dislikes/<int:pk>/', CreateLikeDislikeView.as_view(), name="dislike"),
    path('simple-posts/comments/', CreateAndListCommentsView.as_view(), name="comments-all"),
    path('simple-posts/comments/<int:pk>/', DetailsEditDeleteCommentView.as_view(), name="comment-edit"),

]



If likes or dislikes urls are changed change is needed also in like-dislike functionality !!!!!!