aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-03 12:04:00 +0300
committerBonfaceKilz2021-03-08 21:09:58 +0300
commit396aeed35a5925cb03cc1569669b257b8ccb07cb (patch)
tree38800eb85ad8ad0020e1474450d03ab16814f572 /gn3
parent87a3e2254bdd837e9647c42b9c4ab98e986c5e1d (diff)
downloadgenenetwork3-396aeed35a5925cb03cc1569669b257b8ccb07cb.tar.gz
Prepend all endpoints with "api"
Diffstat (limited to 'gn3')
-rw-r--r--gn3/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/app.py b/gn3/app.py
index 9f0c0a4..33f53f9 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -25,6 +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")
+ app.register_blueprint(general, url_prefix="/api/")
+ app.register_blueprint(gemma, url_prefix="/api/gemma")
return app