Bump Gorilla Mux to v1.8.0
.
Signed-off-by: olegburov <oleg.burov@outlook.com>
This commit is contained in:
parent
2800ab0224
commit
545596ae2c
14 changed files with 299 additions and 124 deletions
2
vendor/github.com/gorilla/mux/doc.go
generated
vendored
2
vendor/github.com/gorilla/mux/doc.go
generated
vendored
|
@ -295,7 +295,7 @@ A more complex authentication middleware, which maps session token to users, cou
|
|||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", handler)
|
||||
|
||||
amw := authenticationMiddleware{}
|
||||
amw := authenticationMiddleware{tokenUsers: make(map[string]string)}
|
||||
amw.Populate()
|
||||
|
||||
r.Use(amw.Middleware)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue