diff options
author | Alexander Kabui | 2022-01-13 15:22:51 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-01-22 09:23:14 +0300 |
commit | 0109efc7abf483f990557197fdd22610d93097b9 (patch) | |
tree | 8ec8c636ac83a6dfac8947da7fb558a9c599a03e | |
parent | db4cb5b9fa4e574e0c78a8443f9ddf8859b1205b (diff) | |
download | genenetwork3-0109efc7abf483f990557197fdd22610d93097b9.tar.gz |
generate required json data for ctl api
-rw-r--r-- | gn3/api/ctl.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py index 7de83d7..5ed36cb 100644 --- a/gn3/api/ctl.py +++ b/gn3/api/ctl.py @@ -6,6 +6,7 @@ from flask import Blueprint from flask import request from flask import jsonify +from gn3.computations.ctl import call_ctl_script ctl = Blueprint("ctl",__name__) @@ -14,4 +15,8 @@ def run_ctl(): """endpoint to run ctl""" ctl_data = request.json - return "hello"
\ No newline at end of file + results = call_ctl_script(ctl_data) + + return jsonify({ + "results":results + })
\ No newline at end of file |