apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

How can I get value for path variable ?

Open purekeeper opened this issue 2 years ago • 3 comments

Issue description

I define Apisix Route and use exprs field :

  • name: test match: hosts: - service.xx.cn paths: - /aaa/:var1/test exprs: - subject: scope: Path or Query ? name: var1 op: RegexMatch value: "^[^/]{16,}"

I want get the ### va1 value and use exprs to filter request ,so how to write ?

Environment

  • your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
  • your Kubernetes cluster version (output of kubectl version):
  • if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):

purekeeper avatar Feb 12 '22 08:02 purekeeper

@tao12345666333 Do you know about the issue?

purekeeper avatar Feb 16 '22 01:02 purekeeper

you can see https://github.com/api7/lua-resty-expr docs.

tao12345666333 avatar Feb 16 '22 06:02 tao12345666333

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Aug 01 '22 01:08 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Sep 01 '22 01:09 github-actions[bot]