fixxed main bp error
This commit is contained in:
@@ -16,6 +16,11 @@ def index():
|
||||
return render_template('index.html', configs=load_configs())
|
||||
"""
|
||||
|
||||
@main_bp.route('/configs/<path:filename>')
|
||||
def serve_config_file(filename):
|
||||
return send_from_directory(app.config['CONFIG_DIR'], filename)
|
||||
|
||||
|
||||
@main_bp.route('/load_config/<filename>')
|
||||
def load_config(filename):
|
||||
global current_config
|
||||
|
||||
Reference in New Issue
Block a user