ability-js icon indicating copy to clipboard operation
ability-js copied to clipboard

target wildcard support

Open gautamarora opened this issue 13 years ago • 2 comments

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.

gautamarora avatar May 03 '12 07:05 gautamarora

I would also like more info on how more complex routes are assigned.

sbabigian avatar May 15 '12 20:05 sbabigian

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

gautamarora avatar May 15 '12 22:05 gautamarora