Gallery-Archivist/archivist/apps/files/urls.py

12 lines
349 B
Python
Raw Normal View History

2023-12-28 18:18:21 +00:00
from django.urls import re_path, path
2024-03-14 18:49:51 +00:00
from .views import serve_content_file, fileUpload
app_name = "files"
2023-12-28 18:18:21 +00:00
urlpatterns = [
# Add a URL pattern that captures the file path
2024-03-14 18:49:51 +00:00
path('<folder>/<str:file_hash>', serve_content_file, name='serve_content_file'),
2023-12-28 18:18:21 +00:00
# Other URL patterns if any
2024-03-14 18:49:51 +00:00
path('upload/', fileUpload, name='file_upload'),
2023-12-28 18:18:21 +00:00
]