Skip to content

Commit 4df5214

Browse files
committed
Option to init extra libs
1 parent 5b93ed8 commit 4df5214

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def __init__(self, service: Text, path=__file__):
1818
self.service = service
1919
self.path = os.path.dirname(path)
2020

21+
def init_libs(self, app):
22+
return app
23+
2124
def create_app(self):
2225
"""Initialize the Flask app, register blueprints and initialize
2326
all libraries like Swagger, database,
@@ -35,7 +38,7 @@ def create_app(self):
3538

3639
# Initialize Blueprints
3740
application.register_blueprint(healthcheck_blueprint)
38-
41+
self.init_libs(application)
3942
# Inject Modules
4043
formatter = CustomJsonFormatter('(timestamp) (level) (name) (module) (funcName) (lineno) (message)')
4144
if not application.config["TESTING"]:

0 commit comments

Comments
 (0)