aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/ctl.py17
-rw-r--r--gn3/app.py2
2 files changed, 19 insertions, 0 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py
new file mode 100644
index 0000000..7de83d7
--- /dev/null
+++ b/gn3/api/ctl.py
@@ -0,0 +1,17 @@
+"""module contains endpoints for ctl"""
+
+# so small
+
+from flask import Blueprint
+from flask import request
+from flask import jsonify
+
+
+ctl = Blueprint("ctl",__name__)
+
+@ctl.route("/run_ctl",methods=["POST"])
+def run_ctl():
+ """endpoint to run ctl"""
+ ctl_data = request.json
+
+ return "hello" \ No newline at end of file
diff --git a/gn3/app.py b/gn3/app.py
index 3d68b3f..a1a3795 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -14,6 +14,7 @@ from gn3.api.heatmaps import heatmaps
from gn3.api.correlation import correlation
from gn3.api.data_entry import data_entry
from gn3.api.wgcna import wgcna
+from gn3.api.ctl import ctl
def create_app(config: Union[Dict, str, None] = None) -> Flask:
"""Create a new flask object"""
@@ -45,4 +46,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
app.register_blueprint(correlation, url_prefix="/api/correlation")
app.register_blueprint(data_entry, url_prefix="/api/dataentry")
app.register_blueprint(wgcna, url_prefix="/api/wgcna")
+ app.register_blueprint(ctl, url_prefix="/api/ctl")
return app