forked from openlp/openlp
Allow sub directories in custom stages
This commit is contained in:
parent
ec6015c7fb
commit
aeac690c4e
@ -46,6 +46,6 @@ def stages(path):
|
|||||||
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), 'stage.html')
|
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), 'stage.html')
|
||||||
|
|
||||||
|
|
||||||
@main_views.route('/stage/<path>/<file>')
|
@main_views.route('/stage/<path:path>/<file>')
|
||||||
def stage_assets(path, file):
|
def stage_assets(path, file):
|
||||||
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), file)
|
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), file)
|
||||||
|
Loading…
Reference in New Issue
Block a user