fixxed admin route build error
This commit is contained in:
@@ -76,6 +76,13 @@ def control_page():
|
||||
return render_template('control.html', config=current_config)
|
||||
|
||||
|
||||
@app.route('/admin')
|
||||
def admin():
|
||||
"""Admin-Übersicht: Configs anzeigen, bearbeiten, Logs etc."""
|
||||
configs = load_configs()
|
||||
return render_template('admin.html', configs=configs)
|
||||
|
||||
|
||||
@app.route('/configs/<path:filename>')
|
||||
def serve_config_file(filename):
|
||||
return send_from_directory(app.config['CONFIG_DIR'], filename)
|
||||
|
||||
Reference in New Issue
Block a user