Add a missing setupmethod decorator
This commit is contained in:
parent
d7482cd765
commit
915cb96770
1 changed files with 1 additions and 0 deletions
|
|
@ -560,6 +560,7 @@ class Blueprint(Scaffold):
|
||||||
self.record_once(lambda s: s.app.before_first_request_funcs.append(f))
|
self.record_once(lambda s: s.app.before_first_request_funcs.append(f))
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
@setupmethod
|
||||||
def after_app_request(self, f: ft.AfterRequestCallable) -> ft.AfterRequestCallable:
|
def after_app_request(self, f: ft.AfterRequestCallable) -> ft.AfterRequestCallable:
|
||||||
"""Like :meth:`Flask.after_request` but for a blueprint. Such a function
|
"""Like :meth:`Flask.after_request` but for a blueprint. Such a function
|
||||||
is executed after each request, even if outside of the blueprint.
|
is executed after each request, even if outside of the blueprint.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue