Open BnGx opened 3 years ago
It would be better to implement method-specific decorators to give more flexibility of use as appropriate by transforming this definition:
class PersonList (ResourceDetail): decorators = (cached, login_required)
in the following and more customizable definition:
class PersonList (ResourceDetail): decorators = { 'get': (cached,), 'post': (login_required,), }
It would be better to implement method-specific decorators to give more flexibility of use as appropriate by transforming this definition:
in the following and more customizable definition: