hal-api
hal-api copied to clipboard
Excluding links
I have a use-case where some users have permissions to delete certain resources and others don't.
Because of this, I don't want to always generate a destroy link for a resource if I already know the user can't take that action.
Basically I'd like to exclude certain links based on various conditions. Is there a way to do this? getLinks
allows me to add additional links but I don't see any obvious way to exclude certain routes from _links
Thanks again for the help, I'm really enjoying this package :)