aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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