How to get current API info in plugin?

I need to get current API uri, a uri can have dynamic segments, when a request is made to /test/1/hello, I need to get /test/(.+)/hello instead of /test/1/hello, anyway to do this please?


Yes, see the second part of this post:

About using the ngx.ctx.router_matches structure.


1 Like

great, thank you very much