from django.urls import path
from . import views

app_name='App_Blog'

urlpatterns=[
    path('',views.BlogList.as_view(),name='blog_list'),
    path('write/',views.CreateBlog.as_view(),name='create_blog'),
    path('details/<slug>/',views.blog_details,name='blog_details'),
    path('like/<pk>/',views.liked,name='liked_post'),
    path('unlike/<pk>/',views.unliked,name='unlike_post'),
    path('my-blogs/',views.MyBlogs.as_view(),name='my_blogs'),
    path('edit/<pk>/',views.UpdateBlog.as_view(),name='edit_blog'),
]
