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') }}