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():