You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/06 07:25:09 UTC
[GitHub] [apisix] Firstsawyou commented on a change in pull request #3987: docs: add more example about how to use the router radixtree-uri
Firstsawyou commented on a change in pull request #3987:
URL: https://github.com/apache/apisix/pull/3987#discussion_r607592620
##########
File path: docs/en/latest/router-radixtree.md
##########
@@ -71,7 +71,96 @@ Here are the rules:
|/blog/foo/gloo | `/blog/foo/*` |
|/blog/bar | not match |
-#### 4. Parameter match
+#### 4. Different routes have the same uri
+
+When different routes have the same uri, you can set the priority attribute of the route to determine which route to match first, or add matching rules to distinguish different routes.
+
+1. Different routes have the same uri and set the `priority` attribute
+
+Create two routes with different `priority` values (the larger the value, the higher the priority).
Review comment:
updated.
--
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:
users@infra.apache.org