Files
agentic-soc-platform/backend/apps/attachments/urls.py
funnywolf b6b4cbf017 0.4.0 I always have a choice
You shape nothing until you hold everything.
2026-06-27 19:08:48 +08:00

17 lines
449 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import AttachmentDownloadView, AttachmentViewSet
router = DefaultRouter()
router.register("attachments", AttachmentViewSet, basename="attachment")
urlpatterns = [
path(
"attachments/<uuid:access_key>/download/",
AttachmentDownloadView.as_view(),
name="attachment-download",
),
path("", include(router.urls)),
]