mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-11 04:16:17 +00:00
Update flask_server.py
This commit is contained in:
@@ -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"""
|
||||
|
Reference in New Issue
Block a user