From dd751105ec4e246aa6f81b32d9a5dd3c705fcb9b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 22 Mar 2026 14:18:58 -0400 Subject: [PATCH] Fix data file serving for nested paths (images in galleries) Co-Authored-By: Claude Opus 4.6 (1M context) --- engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.py b/engine.py index 9712581..81fd06a 100644 --- a/engine.py +++ b/engine.py @@ -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