ability-js
ability-js copied to clipboard
target wildcard support
would be great to add support for target wildcards e.g. 'tweets/*': ['read'] would match all urls like: /tweets /tweets.:format? /tweets/new /tweets/:id /tweets/:id/edit /tweets/:id.:format?
maybe i'm missing something and this might already be possible.
I would also like more info on how more complex routes are assigned.
i was able to hack what i wanted: https://github.com/gautamarora/ability-js/commit/71fb65c9f38d67099c88a56fa7f4ec1df796af1c will eventually take the time to think through and issue a pull