I have 2 officeOption (U and A) and one for Admin, another for Users and 2 URLs which contain “admin” has common. Now I need to differentiate the URLs. How to do it?
Sample Code
{
hashPattern: '^#\/admin/bla-bla-users',
officeOption: 'U',
turnOnUsers: turnOnUsers
},
{
hashPattern: '^#\/admin',
officeOption: 'A',
turnOnAdmin: turnOnAdmin
}
If I set officeOption “A”, Only “admin” URL should be accessible and for “U” only “admin/bla-bla-users” should be accessible.
How to archive this?