forked from orbit-oss/flask
Re-added support for folder with static files, refactored static file sending
This commit is contained in:
parent
b7109865a3
commit
ac13deff40
6 changed files with 36 additions and 10 deletions
|
|
@ -273,7 +273,7 @@ class Flask(_PackageBoundObject):
|
|||
|
||||
# if there is a static folder, register it for the application.
|
||||
if self.has_static_folder:
|
||||
self.add_url_rule(self.static_path + '/<filename>',
|
||||
self.add_url_rule(self.static_path + '/<path:filename>',
|
||||
endpoint='static',
|
||||
view_func=self.send_static_file)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue