Skip to content

Commit

Permalink
we need to pass flask app options into the blueprint registration
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaran committed Jan 26, 2024
1 parent 9581a77 commit 9701e6b
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 9701e6b

Please sign in to comment.