Update flask_server.py

This commit is contained in:
MacRimi
2025-10-05 21:24:15 +02:00
parent 7b7705866d
commit efb7cad993

View File

@@ -1681,15 +1681,20 @@ def api_info():
'/api/system',
'/api/system-info',
'/api/storage',
'/api/proxmox-storage', # Added new endpoint
'/api/proxmox-storage',
'/api/network',
'/api/vms',
'/api/logs',
'/api/health',
'/api/hardware' # Added new endpoint
'/api/hardware'
]
})
@app.route('/api/hardware', methods=['GET'])
def api_hardware():
"""Get comprehensive hardware information"""
return jsonify(get_hardware_info())
@app.route('/api/vms/<int:vmid>', methods=['GET'])
def api_vm_details(vmid):
"""Get detailed information for a specific VM/LXC"""