from django.urls import path
from . import views

urlpatterns = [
    path('', views.topic_list, name='forum_list'),
    path('create/', views.topic_create, name='forum_create'),
    path('<int:topic_id>/', views.topic_detail, name='topic_detail'),
    path('<int:topic_id>/edit/', views.topic_edit, name='topic_edit'),
    path('<int:topic_id>/delete/', views.topic_delete, name='topic_delete'),
    path('<int:topic_id>/pin/', views.pin_topic, name='pin_topic'),
    path('<int:topic_id>/close/', views.close_topic, name='close_topic'),
    path('comment/<int:comment_id>/edit/', views.comment_edit, name='comment_edit'),
    path('comment/<int:comment_id>/delete/', views.comment_delete, name='comment_delete'),
]