Refactor: api file endpoint for auth

This commit is contained in:
Aroy-Art 2025-03-20 15:59:38 +01:00
parent bd2791c155
commit 91e7ea2e81
Signed by: Aroy
GPG key ID: 583642324A1D2070
5 changed files with 156 additions and 26 deletions

View file

@ -3,7 +3,7 @@ from .views import FileServeView, FileDetailView
urlpatterns = [
# Serve the actual file
path("files/<str:file_hash>/", FileServeView.as_view(), name="serve_file"),
path("<str:file_hash>/", FileServeView.as_view(), name="serve_file"),
# Get file metadata
path("files/<str:file_hash>/info/", FileDetailView.as_view(), name="file_info"),
path("<str:file_hash>/info/", FileDetailView.as_view(), name="file_info"),
]