def create_app(): app = Flask(__name__) app.config.from_object(Config) register_blueprints(app) injector = FlaskInjector(app=app, modules=[configure]) app.injector = injector.injector jwt.init_app(app) return app
def create_app(): app = Flask(__name__) app.config.from_object(Config) register_blueprints(app) injector = FlaskInjector(app=app, modules=[configure]) app.injector = injector.injector db = app.injector.get(DbConnectionPool) db.init_app(app) jwt.init_app(app) init_consul(app) metrics.init_app(app) return app
def create_app(): app = Flask(__name__) app.config.from_object(Config) login_manager.init_app(app) register_blueprints(app) register_template_filters(app) injector = FlaskInjector(app=app, modules=[configure]) app.injector = injector.injector db: DbConnectionPool = app.injector.get(DbConnectionPool) db.init_app(app) jwt.init_app(app) broker: AppBroker = app.injector.get(AppBroker) broker.init_app(app) return app