mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
Fix data file serving for nested paths (images in galleries)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1045,7 +1045,7 @@ async def api_directory_tree(req, resp):
|
||||
# --- Data file serving ---
|
||||
|
||||
|
||||
@api.route("/data/{path}")
|
||||
@api.route("/data/{path:path}")
|
||||
async def serve_data_file(req, resp, *, path):
|
||||
"""Serve static files from the data directory."""
|
||||
file_path = DATA_DIR / path
|
||||
|
||||
Reference in New Issue
Block a user