Merge branch 'readd_custom_stage_views' into 'master'

Re-add custom stage view support

See merge request openlp/openlp!223
This commit is contained in:
Tomas Groth 2020-08-01 19:32:29 +00:00
commit ec85f1f8b9
1 changed files with 10 additions and 0 deletions

View File

@ -39,3 +39,13 @@ def index(path):
@main_views.route('/assets/<path>')
def assets(path):
return send_from_directory(str(AppLocation.get_section_data_path('remotes') / 'assets'), path)
@main_views.route('/stage/<path>/')
def stages(path):
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), 'stage.html')
@main_views.route('/stage/<path>/<file>')
def stage_assets(path, file):
return send_from_directory(str(AppLocation.get_section_data_path('stages') / path), file)