Update AppImage

This commit is contained in:
MacRimi
2025-11-07 18:49:37 +01:00
parent 60c91d9fe4
commit fc7d0f2cd5
4 changed files with 394 additions and 482 deletions

View File

@@ -24,3 +24,16 @@ def get_health_details():
return jsonify(details)
except Exception as e:
return jsonify({'error': str(e)}), 500
@health_bp.route('/api/system-info', methods=['GET'])
def get_system_info():
"""
Get lightweight system info for header display.
Returns: hostname, uptime, and cached health status.
This is optimized for minimal server impact.
"""
try:
info = health_monitor.get_system_info()
return jsonify(info)
except Exception as e:
return jsonify({'error': str(e)}), 500