kongjun01 edited a comment on issue #6190:
URL: https://github.com/apache/apisix/issues/6190#issuecomment-1020021698
I expect to customize the route through the global plug-in, because the
route information cannot be created through the apisix api. However, when the
route does not match, it directly returns '404 route not found'.
Here is my pseudo code:
```
local nodes = {}
core.table.insert(nodes, { host ='112.80.248.76', weight = 1, port = 443 })
local up_conf = {
type = "roundrobin",
nodes = nodes,
scheme = "https",
pass_host = "rewrite",
upstream_host = 'www.baidu.com'
}
local route_val = { uri = "/*", host = { host }, id = "#reverse_test" ,
upstream = up_conf }
ctx.matched_route = { value = route_val, modifiedIndex = 'test' }
```
--
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]