aboutsummaryrefslogtreecommitdiff
path: root/gn3/app.py
diff options
context:
space:
mode:
authorArun Isaac2022-10-26 14:23:34 +0530
committerArun Isaac2022-10-28 13:20:13 +0530
commit60e2ca08beb9a9d5795f0a44df096fc6c0bc2583 (patch)
tree9af459b0b06c50b7cbb0e64f73318993f905cf67 /gn3/app.py
parent6a9db0c1734a22e792f2204c029810ca1cea7f86 (diff)
downloadgenenetwork3-60e2ca08beb9a9d5795f0a44df096fc6c0bc2583.tar.gz
Add search.
* gn3/api/search.py: New file. * gn3/app.py: Register the search blueprint.
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/app.py b/gn3/app.py
index 8a44983..6c7e483 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -17,6 +17,7 @@ from gn3.api.wgcna import wgcna
from gn3.api.ctl import ctl
from gn3.api.async_commands import async_commands
from gn3.api.menu import menu
+from gn3.api.search import search
def create_app(config: Union[Dict, str, None] = None) -> Flask:
"""Create a new flask object"""
@@ -51,4 +52,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
app.register_blueprint(ctl, url_prefix="/api/ctl")
app.register_blueprint(async_commands, url_prefix="/api/async_commands")
app.register_blueprint(menu, url_prefix="/api/menu")
+ app.register_blueprint(search, url_prefix="/api/search")
return app