aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander Kabui2022-01-13 15:22:51 +0300
committerBonfaceKilz2022-01-22 09:23:14 +0300
commit0109efc7abf483f990557197fdd22610d93097b9 (patch)
tree8ec8c636ac83a6dfac8947da7fb558a9c599a03e /gn3/api
parentdb4cb5b9fa4e574e0c78a8443f9ddf8859b1205b (diff)
downloadgenenetwork3-0109efc7abf483f990557197fdd22610d93097b9.tar.gz
generate required json data for ctl api
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/ctl.py7
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