What are approaches to limit access control to routes? I use ESA for authentication. So I have user scopes. The only thing am yet to figure out is how Access Control to limit front end resources according to user scopes.
I think of making a Route Mixin and hook to beforeModel and add field called scopes which would indicate what scopes are allowed on that particular route. I’m not sure if its the ember-ish way.
How do you do it guys?