From 0109efc7abf483f990557197fdd22610d93097b9 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Thu, 13 Jan 2022 15:22:51 +0300 Subject: generate required json data for ctl api --- gn3/api/ctl.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gn3/api') 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 -- cgit v1.2.3