From 44666e0594a56d2b7911351469555c2f67abaff6 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 16 Feb 2021 23:57:18 +0300 Subject: Register "general" blueprint endpoints --- gn3/app.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn3') diff --git a/gn3/app.py b/gn3/app.py index e9ce7f1..9f0c0a4 100644 --- a/gn3/app.py +++ b/gn3/app.py @@ -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 -- cgit v1.2.3