wklken commented on issue #9366:
URL: https://github.com/apache/apisix/issues/9366#issuecomment-1521173847
```lua
local rx = radix.new({
{
paths = {"/api/prod/:version/test/api/foo/?"},
metadata = "metadata long",
},
{
paths = {"/api/prod/:version/test/*subp"},
metadata = "metadata short",
},
})
local opts = {
host = "foo.com",
method = "GET",
remote_addr = "127.0.0.1",
vars = ngx.var,
}
local path = "/api/prod/v4/test/api/foo/"
local metadata = rx:match(path, opts)
core.log.error(metadata)
```
--
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]