Static dir 2075 (#2076)

* Add support for nested static directories

* Add support for nested static directories

* Bump version 21.3.1
This commit is contained in:
Adam Hopkins
2021-03-21 15:03:54 +02:00
committed by GitHub
parent 13630a79ad
commit 938d2b5923
8 changed files with 20 additions and 2 deletions

View File

@@ -776,7 +776,7 @@ class RouteMixin:
# If we're not trying to match a file directly,
# serve from the folder
if not path.isfile(file_or_directory):
uri += "/<__file_uri__>"
uri += "/<__file_uri__:path>"
# special prefix for static files
# if not static.name.startswith("_static_"):