from django.urls import path, include
from .views import *

app_name='main'
urlpatterns = [ 
    path('', showmain,name="main"),
    path('showfirst/',showfirst, name="first"),
    path('showsecond/', showsecond, name="second"),
    path('showthird/',showthird,name="third"),
    path('<int:id>',detail, name="detail"),
    path('new/',new, name="new"),
    path('create/',create, name="create"),
    path('edit/<str:id>',edit, name="edit"),
    path('update/<str:id>', update, name="update"),
    path('delete/<str:id>', delete, name="delete"),
    path('<str:post_id>/create_comment', create_comment, name="create_comment"),
    path('<str:post_id>/<str:comment_id>/edit_comment', edit_comment, name='edit_comment'),
    path('<str:comment_id>/delete_comment', delete_comment, name="delete_comment"),
    path('<str:post_id>/<str:comment_id>/update_comment', update_comment, name='update_comment'),
    path('like_toggle/<int:post_id>/' ,like_toggle,name="like_toggle"),
    path('dislike_toggle/<int:post_id>/' ,dislike_toggle,name="dislike_toggle"),
] 