mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-11 12:26:18 +00:00
Update flask_server.py
This commit is contained in:
@@ -1681,15 +1681,20 @@ def api_info():
|
|||||||
'/api/system',
|
'/api/system',
|
||||||
'/api/system-info',
|
'/api/system-info',
|
||||||
'/api/storage',
|
'/api/storage',
|
||||||
'/api/proxmox-storage', # Added new endpoint
|
'/api/proxmox-storage',
|
||||||
'/api/network',
|
'/api/network',
|
||||||
'/api/vms',
|
'/api/vms',
|
||||||
'/api/logs',
|
'/api/logs',
|
||||||
'/api/health',
|
'/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'])
|
@app.route('/api/vms/<int:vmid>', methods=['GET'])
|
||||||
def api_vm_details(vmid):
|
def api_vm_details(vmid):
|
||||||
"""Get detailed information for a specific VM/LXC"""
|
"""Get detailed information for a specific VM/LXC"""
|
||||||
|
Reference in New Issue
Block a user