add api for descriptor to root domain, tidying things up
This commit is contained in:
@ -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
|
||||
#######################################################################
|
||||
|
||||
Reference in New Issue
Block a user