From a18294d4172f354c3d13caa47a4a8f2284b469e4 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Wed, 16 Jan 2019 16:44:05 +0100 Subject: [PATCH] Route priorities: document minimum priority value --- docs/basics.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/basics.md b/docs/basics.md index 170f5a210..9635dd3e7 100644 --- a/docs/basics.md +++ b/docs/basics.md @@ -236,7 +236,8 @@ The following rules are both `Matchers` and `Modifiers`, so the `Matcher` portio #### Priorities By default, routes will be sorted (in descending order) using rules length (to avoid path overlap): -`PathPrefix:/foo;Host:foo.com` (length == 28) will be matched before `PathPrefixStrip:/foobar` (length == 23) will be matched before `PathPrefix:/foo,/bar` (length == 20). +- `PathPrefix:/foo;Host:foo.com` (length == 28) will be matched before `PathPrefixStrip:/foobar` (length == 23) will be matched before `PathPrefix:/foo,/bar` (length == 20). +- A priority value of 0 will be ignored, so the default value will be calculated (rules length). You can customize priority by frontend. The priority value override the rule length during sorting: