aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
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