from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    ConversationViewSet,
    MessageViewSet,
    MessageAttachmentViewSet,
    UserKeyViewSet,
)

router = DefaultRouter()
router.register(r'conversations', ConversationViewSet, basename='chat-conversation')
router.register(r'messages', MessageViewSet, basename='chat-message')
router.register(r'attachments', MessageAttachmentViewSet, basename='chat-attachment')
router.register(r'keys', UserKeyViewSet, basename='chat-key')

urlpatterns = [
    path('', include(router.urls)),
]
