2025-05-30 12:02:39 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
|
app_name = 'chat'
|
2025-06-25 06:50:42 +00:00
|
|
|
# @formatter:off
|
2025-05-30 12:02:39 +00:00
|
|
|
urlpatterns = [
|
2025-06-17 03:58:35 +00:00
|
|
|
path('embed', views.ChatEmbedView.as_view()),
|
|
|
|
|
path('auth/anonymous', views.AnonymousAuthentication.as_view()),
|
|
|
|
|
path('profile', views.AuthProfile.as_view()),
|
|
|
|
|
path('application/profile', views.ApplicationProfile.as_view()),
|
2025-06-09 08:18:43 +00:00
|
|
|
path('chat_message/<str:chat_id>', views.ChatView.as_view()),
|
2025-06-17 07:01:59 +00:00
|
|
|
path('open', views.OpenView.as_view()),
|
2025-06-30 10:03:11 +00:00
|
|
|
path('text_to_speech', views.TextToSpeech.as_view()),
|
|
|
|
|
path('speech_to_text', views.SpeechToText.as_view()),
|
2025-06-17 07:01:59 +00:00
|
|
|
path('captcha', views.CaptchaView.as_view(), name='captcha'),
|
2025-06-23 12:19:32 +00:00
|
|
|
path('vote/chat/<str:chat_id>/chat_record/<str:chat_record_id>', views.VoteView.as_view(), name='vote'),
|
2025-06-23 13:28:10 +00:00
|
|
|
path('historical_conversation', views.HistoricalConversationView.as_view(), name='historical_conversation'),
|
2025-06-27 10:54:05 +00:00
|
|
|
path('historical_conversation/<str:chat_id>/record/<str:chat_record_id>',views.ChatRecordView.as_view(),name='conversation_details'),
|
2025-06-25 06:50:42 +00:00
|
|
|
path('historical_conversation/<int:current_page>/<int:page_size>', views.HistoricalConversationView.PageView.as_view(), name='historical_conversation'),
|
|
|
|
|
path('historical_conversation_record/<str:chat_id>', views.HistoricalConversationRecordView.as_view(), name='historical_conversation_record'),
|
|
|
|
|
path('historical_conversation_record/<str:chat_id>/<int:current_page>/<int:page_size>', views.HistoricalConversationRecordView.PageView.as_view(), name='historical_conversation_record')
|
2025-05-30 12:02:39 +00:00
|
|
|
]
|