mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-05-02 04:16:24 +00:00
Update flask_server.py
This commit is contained in:
@@ -2434,9 +2434,9 @@ def api_storage_summary():
|
||||
return jsonify({'error': str(e)}), 500
|
||||
# END OF CHANGE FOR /api/storage/summary
|
||||
|
||||
@app.route('/api/storage/observations', methods=['GET'])
|
||||
@require_auth
|
||||
def api_storage_observations():
|
||||
@app.route('/api/storage/observations', methods=['GET'])
|
||||
@require_auth
|
||||
def api_storage_observations():
|
||||
"""Get disk observations (permanent error history) for a specific disk or all disks."""
|
||||
try:
|
||||
device = request.args.get('device', '')
|
||||
@@ -2455,7 +2455,7 @@ def api_storage_summary():
|
||||
except Exception as e:
|
||||
return jsonify({'observations': [], 'error': str(e)}), 500
|
||||
|
||||
def get_interface_type(interface_name):
|
||||
def get_interface_type(interface_name):
|
||||
"""Detect the type of network interface"""
|
||||
try:
|
||||
# Skip loopback
|
||||
|
||||
Reference in New Issue
Block a user