Add routes priorities in documentation
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
cc4fb64b34
commit
7e6c580130
3 changed files with 42 additions and 15 deletions
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"github.com/containous/mux"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -52,7 +53,6 @@ func TestParseTwoRules(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func TestPriorites(t *testing.T) {
|
||||
router := mux.NewRouter()
|
||||
router.StrictSlash(true)
|
||||
|
@ -130,4 +130,3 @@ type fakeHandler struct {
|
|||
func (h *fakeHandler) ServeHTTP(http.ResponseWriter, *http.Request) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue