from django.urls import path
from apps.posts.views import index, create, detail, update, delete, get_profile
from django.contrib.auth.views import LogoutView

urlpatterns = [
    path('', index, name='index'),
    path('create/', create, name='create'),
    path('detail/<int:id>/', detail, name='detail'),
    path('update/<int:id>/', update, name='update'),
    path('delete/<int:id>/', delete, name='delete'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('profile/<int:id>/', get_profile, name='profile')
]
