aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-16 23:57:18 +0300
committerBonfaceKilz2021-02-16 23:57:18 +0300
commit44666e0594a56d2b7911351469555c2f67abaff6 (patch)
tree7e2322f8ac97325ec475357b974dea49cf2da466
parent024fe45062da1987767a4de7d909ec995598bf8f (diff)
downloadgenenetwork3-44666e0594a56d2b7911351469555c2f67abaff6.tar.gz
Register "general" blueprint endpoints
-rw-r--r--gn3/app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/app.py b/gn3/app.py
index e9ce7f1..9f0c0a4 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -6,6 +6,8 @@ from typing import Union
from flask import Flask
from gn3.api.gemma import gemma
+from gn3.api.general import general
+
def create_app(config: Union[Dict, str, None] = None) -> Flask:
"""Create a new flask object"""
@@ -23,5 +25,6 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
app.config.update(config)
elif config.endswith(".py"):
app.config.from_pyfile(config)
+ app.register_blueprint(general, url_prefix="/")
app.register_blueprint(gemma, url_prefix="/gemma")
return app