fixxed main bp error

This commit is contained in:
2026-02-16 15:46:17 +01:00
parent 2c2aa78cd7
commit 2a39a9d527
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -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