from django.urls import path from apps.chat.views import ( CentrifugoTokenView, ChatRoomListCreateView, ChatRoomDetailView, ChatMessageListCreateView, ChatRoomMarkReadView, ) urlpatterns = [ # Centrifugo v5 WebSocket Token path('centrifugo-token/', CentrifugoTokenView.as_view(), name='chat_centrifugo_token'), # Chat Rooms & Conversations path('rooms/', ChatRoomListCreateView.as_view(), name='chat_room_list_create'), path('rooms//', ChatRoomDetailView.as_view(), name='chat_room_detail'), # Messages & Attachments path('rooms//messages/', ChatMessageListCreateView.as_view(), name='chat_message_list_create'), # Read Receipts path('rooms//read/', ChatRoomMarkReadView.as_view(), name='chat_room_mark_read'), ]