lty/qy_lty/aiapp/urls.py
pmc 59b178f8f4 feat: update AI app views/urls and add RTC bot migration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 11:55:52 +08:00

14 lines
543 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import ChatBotAPIView, MultiChatAPIView, BotViewSet, RTCChatHistoryAPIView
router = DefaultRouter()
router.register(r'bots', BotViewSet, basename='bot')
urlpatterns = [
path('', include(router.urls)),
path('chat/<int:bot_id>/', ChatBotAPIView.as_view(), name='chat-bot'),
path('multichat/', MultiChatAPIView.as_view(), name='multi-chat'),
path('rtc-chat-history/', RTCChatHistoryAPIView.as_view(), name='rtc-chat-history'),
]