from django.urls import path
from . import views

urlpatterns = [
    path('discussions/', views.DiscussionView.as_view(), name='discussion'),
    path('discussions/<int:discussion_pk>/messages/', views.MessageListCreateView.as_view(), name='message-list'),
    path('messages/<int:pk>/', views.MessageDetailView.as_view(), name='message-detail'),
    path('messages/<int:pk>/pin/', views.MessagePinView.as_view(), name='message-pin'),
    path('messages/<int:message_pk>/reactions/', views.MessageReactionView.as_view(), name='message-reaction'),
    path('messages/<int:message_pk>/replies/', views.MessageRepliesView.as_view(), name='message-replies'),
]
