Skip to content

Commit 47d5829

Browse files
Merge pull request #38 from FireTail-io/bugfix/flask-app-pass-options
we need to pass flask app options into the blueprint registration
2 parents 9581a77 + 9701e6b commit 47d5829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firetail/apps/flask_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def common_error_handler(self, exception):
7777

7878
def add_api(self, specification, **kwargs):
7979
api = super().add_api(specification, **kwargs)
80-
self.app.register_blueprint(api.blueprint)
80+
self.app.register_blueprint(api.blueprint, **kwargs.get('options', {}))
8181
if isinstance(specification, (str, pathlib.Path)):
8282
self.extra_files.append(self.specification_dir / specification)
8383
return api

0 commit comments

Comments
 (0)