Added separate module for testing
This commit is contained in:
parent
c34b03e9a6
commit
df3f8940c3
4 changed files with 44 additions and 23 deletions
|
|
@ -30,7 +30,7 @@ def _register_module(module, static_path):
|
|||
if state.url_prefix:
|
||||
path = state.url_prefix + path
|
||||
state.app.add_url_rule(path + '/<path:filename>',
|
||||
'%s.static' % module.name,
|
||||
endpoint='%s.static' % module.name,
|
||||
view_func=module.send_static_file)
|
||||
return _register
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue