Refactor: api file endpoint for auth
This commit is contained in:
parent
bd2791c155
commit
91e7ea2e81
5 changed files with 156 additions and 26 deletions
|
@ -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"),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue