kongjun01 edited a comment on issue #6190:
URL: https://github.com/apache/apisix/issues/6190#issuecomment-1020736972
I see what you mean. In run_global_rules to judge whether there is a route
again.
such as:
```
local route = api_ctx.matched_route
if not route then
-- run global rule
plugin.run_global_rules(api_ctx, router.global_rules, nil)
route = api_ctx.matched_route
if not route then
core.log.info("not find any matched route")
return core.response.exit(404,
{error_msg = "404 Route Not Found"})
end
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]