aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/ctl.py
blob: 7eca61856629842183fc9b536217c2c9a9f182e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""module contains endpoints for ctl"""

# so small 

from flask import Blueprint
from flask import request
from flask import jsonify

from gn3.computations.ctl import call_ctl_script

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)

	return jsonify({
	"results":results
	})