Firstsawyou commented on issue #3722: URL: https://github.com/apache/apisix/issues/3722#issuecomment-788604894
> I don’t understand what you mean, you can post a link to the document or some demo, thank you very much! This is an example, you can refer to it: ``` curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/lib/*", "vars": [ ["uri","~*","/lib/([a-fA-F0-9]+)$"] ], "upstream": { "nodes": { "127.0.0.1:1980": 1 }, "type": "roundrobin" } }' ``` You can refer to here for the detailed usage of vars: https://github.com/apache/apisix/blob/master/docs/en/latest/admin-api.md#route ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
