From ab949897f54e032b372bc7866b3cb77a6676fa53 Mon Sep 17 00:00:00 2001 From: Aodhan Collins Date: Sun, 27 Jul 2025 01:50:46 +0100 Subject: [PATCH] Template fix --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 7c08c73..83405b0 100644 --- a/api.py +++ b/api.py @@ -210,7 +210,7 @@ if portainer_username and portainer_password: @app.route('/') def dashboard(): """Serve the dashboard""" - return render_template('template.html') + return send_from_directory(os.path.dirname(os.path.abspath(__file__)), 'template.html') @app.route('/api/containers') def get_containers():