forked from openlp/openlp
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:
commit
ec85f1f8b9
@ -39,3 +39,13 @@ def index(path):
|
|||||||
@main_views.route('/assets/<path>')
|
@main_views.route('/assets/<path>')
|
||||||
def assets(path):
|
def assets(path):
|
||||||
return send_from_directory(str(AppLocation.get_section_data_path('remotes') / '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)
|
||||||
|
Loading…
Reference in New Issue
Block a user