feat(file-summary): 实现对话附件上传接口
This commit is contained in:
22
review_agent/urls.py
Normal file
22
review_agent/urls.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from django.urls import path
|
||||
|
||||
from .file_summary.views import attachment_detail, attachments
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"api/review-agent/conversations/<int:conversation_id>/attachments/",
|
||||
attachments,
|
||||
name="file_summary_attachment_upload",
|
||||
),
|
||||
path(
|
||||
"api/review-agent/conversations/<int:conversation_id>/attachments/",
|
||||
attachments,
|
||||
name="file_summary_attachment_list",
|
||||
),
|
||||
path(
|
||||
"api/review-agent/conversations/<int:conversation_id>/attachments/<int:attachment_id>/",
|
||||
attachment_detail,
|
||||
name="file_summary_attachment_detail",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user