gliffcheung opened a new issue, #11270: URL: https://github.com/apache/apisix/issues/11270
### Description I have two route, one route is for normal use. ```json { "uri": "/foo/bar/*", "name": "test_route", "upstream_id": "xxx", "priority": 0, "status": 1 } ``` Another route is used to deny all the swagger api. To achieve this, the uri is set to `/*` and I use `vars` to regex match request uri. ```json { "uri": "/*", "name": "deny_swagger", "vars": [ [ "uri", "~*", "swagger" ] ], "plugins": { "mocking": { "response_example": "", "response_status": 403 } }, "priority": 1, "status": 1 } ``` But currently the priority field takes precedence over other rules except uri, so even if the `deny_swagger` route has higher priority than `test_route`, it doesn't work as I want. -- 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: notifications-unsubscr...@apisix.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org