aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/ctl.py
blob: 5ed36cb0f6d291eb1bd440528ac510cd858c6173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""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
	})