Add: url configs
This commit is contained in:
parent
43b7030d33
commit
f55815bb29
2 changed files with 10 additions and 0 deletions
9
archivist/apps/files/urls.py
Normal file
9
archivist/apps/files/urls.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from django.urls import re_path, path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
# Add a URL pattern that captures the file path
|
||||
path('submission/<str:file_hash>', views.serve_submission_file, name='serve_submission_file'),
|
||||
# Other URL patterns if any
|
||||
path('upload/', views.fileUpload, name='file_upload'),
|
||||
]
|
|
@ -21,6 +21,7 @@ admin.site.site_header = 'Gallery Archivist Django Admin Panel'
|
|||
urlpatterns = [
|
||||
path('admin/', admin.site.urls), # Django admin route
|
||||
path("", include("apps.authentication.urls")), # Auth routes - login / register
|
||||
path("files/", include("apps.files.urls")),
|
||||
|
||||
path("", include("sites.furaffinity.urls")),
|
||||
|
||||
|
|
Loading…
Reference in a new issue