forked from openlp/openlp
Merge branch 'Allow-sub-directories-in-custom-stages' into 'master'
Allow sub directories in custom stages Closes #759 See merge request openlp/openlp!298
This commit is contained in:
commit
b0d8d6fd85
@ -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