|
@@ -51,6 +51,14 @@ def onError(ex):
|
|
|
logger.error(ex)
|
|
|
return jsonify({'state': 'fail'})
|
|
|
|
|
|
+@app.route('/plot/channels')
|
|
|
+def channels():
|
|
|
+ try:
|
|
|
+ logger.debug('start chratio')
|
|
|
+ result = get_channels()
|
|
|
+ return jsonify({'channels': result, 'state': 'success'})
|
|
|
+ except Exception as ex:
|
|
|
+ return onError(ex)
|
|
|
|
|
|
@app.route('/plot/ch_ratio')
|
|
|
def ch_ratio():
|