diff options
author | BonfaceKilz | 2021-02-16 23:57:18 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-02-16 23:57:18 +0300 |
commit | 44666e0594a56d2b7911351469555c2f67abaff6 (patch) | |
tree | 7e2322f8ac97325ec475357b974dea49cf2da466 | |
parent | 024fe45062da1987767a4de7d909ec995598bf8f (diff) | |
download | genenetwork3-44666e0594a56d2b7911351469555c2f67abaff6.tar.gz |
Register "general" blueprint endpoints
-rw-r--r-- | gn3/app.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |