Closed sjquant closed 5 years ago
Problem
sanic_jwt_extend.jwt_required only works for function view. It does not work for class based view like HTTPMethodView.
Expected Behavior
it should work for HTTPMethodView. It contains request object in the second args
Proposed Solution
I created _get_request function, which checks the type of args and get request object.
_get_request
Good! Thanks for your PR :heart_eyes:
Problem
sanic_jwt_extend.jwt_required only works for function view. It does not work for class based view like HTTPMethodView.
Expected Behavior
it should work for HTTPMethodView. It contains request object in the second args
Proposed Solution
I created
_get_request
function, which checks the type of args and get request object.