tzssangglass commented on issue #6190:
URL: https://github.com/apache/apisix/issues/6190#issuecomment-1020833359
> I see what you mean.
>
> or maybe:
>
> ```
> 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
> ```
>
> the global plugin can set route.
If you need to do this, you can fork it and modify it later.
--
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]