aboutsummaryrefslogtreecommitdiff
path: root/qc_app/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/__init__.py')
-rw-r--r--qc_app/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qc_app/__init__.py b/qc_app/__init__.py
index 88e65be..9907695 100644
--- a/qc_app/__init__.py
+++ b/qc_app/__init__.py
@@ -9,6 +9,7 @@ from .entry import entrybp
from .upload import upload
from .parse import parsebp
from .samples import samples
+from .base_routes import base
from .dbinsert import dbinsertbp
from .errors import register_error_handlers
@@ -18,6 +19,7 @@ def override_settings_with_envvars(
for setting in (key for key in app.config if key not in ignore):
app.config[setting] = os.environ.get(setting) or app.config[setting]
+
def create_app():
"""The application factory"""
app = Flask(__name__)
@@ -32,6 +34,7 @@ def create_app():
app.config.from_envvar("QCAPP_SECRETS")
# setup blueprints
+ app.register_blueprint(base, url_prefix="/")
app.register_blueprint(entrybp, url_prefix="/")
app.register_blueprint(parsebp, url_prefix="/parse")
app.register_blueprint(upload, url_prefix="/upload")