From 396aeed35a5925cb03cc1569669b257b8ccb07cb Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 3 Mar 2021 12:04:00 +0300 Subject: Prepend all endpoints with "api" --- gn3/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn3') 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 -- cgit v1.2.3