Skip to content

Commit 9701e6b

Browse files
author
ciaran
committed
we need to pass flask app options into the blueprint registration
1 parent 9581a77 commit 9701e6b

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)