diff options
author | Frederick Muriuki Muriithi | 2022-05-26 16:42:27 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-05-26 16:42:27 +0300 |
commit | 236d9236c794d7870258eab9e087f990c557462a (patch) | |
tree | 8f5d38f5819ac6853c99215a7fe983263d784b2a /gn3/app.py | |
parent | fdf9061981ce5d341d178951adeb19dd0376ee66 (diff) | |
download | genenetwork3-236d9236c794d7870258eab9e087f990c557462a.tar.gz |
Add Endpoint to get menu items for use in UI
Diffstat (limited to 'gn3/app.py')
-rw-r--r-- | gn3/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -16,6 +16,7 @@ from gn3.api.data_entry import data_entry from gn3.api.wgcna import wgcna from gn3.api.ctl import ctl from gn3.api.async_commands import async_commands +from gn3.api.menu import menu def create_app(config: Union[Dict, str, None] = None) -> Flask: """Create a new flask object""" @@ -49,4 +50,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask: app.register_blueprint(wgcna, url_prefix="/api/wgcna") app.register_blueprint(ctl, url_prefix="/api/ctl") app.register_blueprint(async_commands, url_prefix="/api/async_commands") + app.register_blueprint(menu, url_prefix="/api/menu") return app |