Skip to content

Commit

Permalink
Merge pull request #38 from FireTail-io/bugfix/flask-app-pass-options
Browse files Browse the repository at this point in the history
we need to pass flask app options into the blueprint registration
  • Loading branch information
rileyfiretail authored Jan 31, 2024
2 parents 9581a77 + 9701e6b commit 47d5829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firetail/apps/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def common_error_handler(self, exception):

def add_api(self, specification, **kwargs):
api = super().add_api(specification, **kwargs)
self.app.register_blueprint(api.blueprint)
self.app.register_blueprint(api.blueprint, **kwargs.get('options', {}))
if isinstance(specification, (str, pathlib.Path)):
self.extra_files.append(self.specification_dir / specification)
return api
Expand Down

0 comments on commit 47d5829

Please sign in to comment.