Skip to content

Conversation

@Zyzzx
Copy link
Contributor

@Zyzzx Zyzzx commented Jan 9, 2019

When adding decorators to the Api initializer:
api = Api(app, decorators=(my_decorator,))
Decorators would not be added because the as_view class method was executed before the decorators were added to the class and as_view in Flask adds them at that time.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.668% when pulling 9695ed9 on Zyzzx:view_decorators into 268e948 on miLibris:master.

@akira-dev
Copy link
Collaborator

You're right. Thanks for your contribution

@akira-dev akira-dev merged commit b15d972 into miLibris:master Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants