mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 22:21:58 -06:00
Restore device details API
This commit is contained in:
@@ -64,6 +64,12 @@ def get_device_by_guid(guid: str) -> object:
|
||||
return jsonify(device)
|
||||
|
||||
|
||||
@blueprint.route("/api/device/details/<hostname>", methods=["GET"])
|
||||
def get_device_details(hostname: str) -> object:
|
||||
payload = _inventory().get_device_details(hostname)
|
||||
return jsonify(payload)
|
||||
|
||||
|
||||
@blueprint.route("/api/device/description/<hostname>", methods=["POST"])
|
||||
def set_device_description(hostname: str) -> object:
|
||||
payload = request.get_json(silent=True) or {}
|
||||
|
||||
Reference in New Issue
Block a user