You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
797 B

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/<int:pk>/', ChatRoomDetailView.as_view(), name='chat_room_detail'),
# Messages & Attachments
path('rooms/<int:pk>/messages/', ChatMessageListCreateView.as_view(), name='chat_message_list_create'),
# Read Receipts
path('rooms/<int:pk>/read/', ChatRoomMarkReadView.as_view(), name='chat_room_mark_read'),
]