aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/ctl.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py
index 7eca618..05cf6ff 100644
--- a/gn3/api/ctl.py
+++ b/gn3/api/ctl.py
@@ -1,6 +1,6 @@
"""module contains endpoints for ctl"""
-# so small
+# so small
from flask import Blueprint
from flask import request
@@ -8,16 +8,17 @@ from flask import jsonify
from gn3.computations.ctl import call_ctl_script
-ctl = Blueprint("ctl",__name__)
+ctl = Blueprint("ctl", __name__)
-@ctl.route("/run_ctl",methods=["POST"])
-def run_ctl():
- """endpoint to run ctl"""
- ctl_data = request.json
- results = call_ctl_script(ctl_data)
+@ctl.route("/run_ctl", methods=["POST"])
+def run_ctl():
+ """endpoint to run ctl"""
+ ctl_data = request.json
- return jsonify({
- "results":results
- })
+ results = call_ctl_script(ctl_data)
+ return jsonify({
+ "results": results
+ })
+