fix: paths of same prefix problem. (#4560)
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.
Showing
Please register or sign in to comment