Template fix
This commit is contained in:
2
api.py
2
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():
|
||||
|
||||
Reference in New Issue
Block a user