jsonapi-rb / jsonapi-rails

Rails gem for fast jsonapi-compliant APIs.
http://jsonapi-rb.org
MIT License
321 stars 63 forks source link

Add support for default exposures at application and controller level #4

Closed tappleby closed 7 years ago

tappleby commented 7 years ago

Often applications will need to declare default exposures both globally for the application and at the controller level.

Possible API for controllers:

before_action :expose_scope; jsonapi_expose scope: current_user; end
beauby commented 7 years ago

Agreed, will try to implement that over next week.