Update: files app_name in urls.py

This commit is contained in:
Aroy-Art 2024-03-14 19:49:51 +01:00
parent f652b213cf
commit 6e8ff8a4e6
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -1,9 +1,11 @@
from django.urls import re_path, path
from . import views
from .views import serve_content_file, fileUpload
app_name = "files"
urlpatterns = [
# Add a URL pattern that captures the file path
path('<folder>/<str:file_hash>', views.serve_content_file, name='serve_content_file'),
path('<folder>/<str:file_hash>', serve_content_file, name='serve_content_file'),
# Other URL patterns if any
path('upload/', views.fileUpload, name='file_upload'),
path('upload/', fileUpload, name='file_upload'),
]