fixxed flask blueprint names

This commit is contained in:
2026-02-16 14:55:45 +01:00
parent f3679cbd29
commit d7a43dfcc7
3 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ def index():
return render_template('index.html', configs=load_configs())
"""
@app.route('/load_config/<filename>')
@main_bp.route('/load_config/<filename>')
def load_config(filename):
global current_config
path = os.path.join(app.config['CONFIG_DIR'], filename)
@@ -39,7 +39,7 @@ def load_config(filename):
return "Fehler beim Laden der Konfiguration", 500
@app.route('/control')
@main_bp.route('/control')
def control_page():
if current_config is None:
logger.warning("current_config ist None → Redirect zu index")
@@ -58,7 +58,7 @@ def control_page():
)
@app.route('/soundboard')
@main_bp.route('/soundboard')
def soundboard():
if current_config is None or 'sounds' not in current_config:
return redirect(url_for('index'))