add api for descriptor to root domain, tidying things up

This commit is contained in:
2026-03-19 13:35:14 -07:00
parent cf269b83af
commit 7c29cbdab5
7 changed files with 97 additions and 39 deletions

View File

@ -125,6 +125,11 @@ def php_summary():
def info():
return jsonify(get_info())
# system info
@app.route('/descriptor', methods=['GET'])
def descriptor():
return jsonify(get_descriptor())
# socket timer
@app.route('/start_timer', methods=['GET'])
def start_timer():
@ -239,6 +244,9 @@ def get_php_summary():
return result
def get_descriptor():
return cosmostat_system.get_component_class_tree()
#######################################################################
### Other Functions
#######################################################################