Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hooks on store api #2

Closed
jrmi opened this issue Jan 8, 2021 · 0 comments
Closed

Add Hooks on store api #2

jrmi opened this issue Jan 8, 2021 · 0 comments

Comments

@jrmi
Copy link
Owner

jrmi commented Jan 8, 2021

To allow easy box behaviour customization, we can use declare hooks at box creation to be able to modify input or output data.

Some use cases:

  • Allow only owner to modify a resource without having to create spc for each verb (i.e. update, delete)
  • filter list query only for public/published or owned records
  • Delete expired entries on request
    Exactly what I imagined: https://docs.feathersjs.com/api/hooks.html#quick-example
@jrmi jrmi closed this as completed Nov 1, 2021
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

No branches or pull requests

1 participant