From 2a39a9d527c2189c072a8c0c8f6a3f51038343a4 Mon Sep 17 00:00:00 2001 From: oberon Date: Mon, 16 Feb 2026 15:46:17 +0100 Subject: [PATCH] fixxed main bp error --- app/routes/main.py | 5 +++++ templates/index.html | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/routes/main.py b/app/routes/main.py index 90482ef..91181d2 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -16,6 +16,11 @@ def index(): return render_template('index.html', configs=load_configs()) """ +@main_bp.route('/configs/') +def serve_config_file(filename): + return send_from_directory(app.config['CONFIG_DIR'], filename) + + @main_bp.route('/load_config/') def load_config(filename): global current_config diff --git a/templates/index.html b/templates/index.html index 88c01fc..cfeb591 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,7 +13,7 @@
{% if cfg.image %} - {{ cfg.name }} {% else %} @@ -29,7 +29,7 @@ {{ cfg.hub_type | default('unbekannt') }}