• senique's avatar
    fix: paths of same prefix problem. (#4560) · 4a10734d
    senique authored
    Paths of same prefix will return the last match. It will occurs:
    Routes:
    {
      path: '/',
      authority: ['admin', 'user']
      routes: [
    	{
    	  path: '/prefix2',
          authority: ['user']
    	},
    	{
    	  path: '/prefix',
          authority: ['admin']
    	},
      ]
    }
    
    Problem:
    When user visit the '/prefix2', it will match the '/prefix', then Exception403 occurs.
    4a10734d
Authorized.tsx 1.43 KB