I am using react-redux. I can create as many roles as i need, and a single user can be assigned multiple roles. roles contains the array of resources, each resource contains {canView,canAdd,canUpdate, canDelete} for eg: admin role contains
{id, name, resourceRole: [{canAdd:true, canView:true, canUpdate:true, canDelete: true, resourceId:1 },{canAdd:true, canView:true, canUpdate:true, canDelete: true, resourceId:2}])
and so on. Now I am stuck at how to create routing for roles. Is there any way i can acomplish that?