ngx.var.request_uri gives me the entire uri, but I’d like to get the stripped uri.
For example I add an api as follows:
- /myfirstapi or /myfirstapi/v1 or /myfirstapi/v1/beta
- and say I access /myfirstapi/hello/world or /myfirstapi/v1/hello/world or /myfirstapi/v1/beta/hello/world
- I’d like to get hold of /hello/world in the plugin
Is there anything in the context that would give me this value?