Template fix

This commit is contained in:
Aodhan Collins
2025-07-27 01:50:46 +01:00
parent 3a16725de9
commit ab949897f5

2
api.py
View File

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