vault backup: 2025-12-26 02:09:22
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s
This commit is contained in:
21
stroma/file/urls.py
Normal file
21
stroma/file/urls.py
Normal 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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user