aboutsummaryrefslogtreecommitdiff
path: root/gn3/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gn3/app.py b/gn3/app.py
index 33f53f9..c912ed9 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -4,9 +4,10 @@ import os
from typing import Dict
from typing import Union
from flask import Flask
-
+from gn3.config import get_config
from gn3.api.gemma import gemma
from gn3.api.general import general
+from gn3.api.correlation import correlation
def create_app(config: Union[Dict, str, None] = None) -> Flask:
@@ -15,6 +16,10 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
# Load default configuration
app.config.from_object("gn3.settings")
+ my_config = get_config()
+
+ app.config.from_object(my_config["dev"])
+
# Load environment configuration
if "GN3_CONF" in os.environ:
app.config.from_envvar('GN3_CONF')
@@ -27,4 +32,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
app.config.from_pyfile(config)
app.register_blueprint(general, url_prefix="/api/")
app.register_blueprint(gemma, url_prefix="/api/gemma")
+ app.register_blueprint(correlation,url_prefix="/api/correlation")
return app