1
0

vault backup: 2025-12-26 02:09:22
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s

This commit is contained in:
2025-12-26 02:09:22 +01:00
parent 3fddadfe50
commit 50366b9b9c
288 changed files with 58893 additions and 750 deletions

21
stroma/file/urls.py Normal file
View File

@@ -0,0 +1,21 @@
from django.urls import path
from file.views import (
upload_files_page, upload_files_api, explorer_view, pdf_viewer_page,
markdown_editor_page, get_file_tree, get_file_content, save_file_content,
serve_pdf_api
)
app_name = 'file'
urlpatterns = [
path('upload/', upload_files_page, name='upload_page'),
path('upload/api/', upload_files_api, name='upload_api'),
path('explorer/', explorer_view, name='explorer'),
path('viewer/pdf/<int:file_id>/', pdf_viewer_page, name='pdf_viewer'),
path('viewer/markdown/<int:file_id>/', markdown_editor_page, name='markdown_editor'),
path('tree/', get_file_tree, name='tree_api'),
path('content/<int:file_id>/', get_file_content, name='get_content'),
path('content/<int:file_id>/save/', save_file_content, name='save_content'),
path('pdf/<int:file_id>/', serve_pdf_api, name='serve_pdf'),
]