mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Fixed documentation example for group with basic auth.
This commit is contained in:
parent
143f563734
commit
eac276d86b
@ -33,8 +33,8 @@ BasicAuth middleware provides an HTTP basic authentication.
|
||||
*Example*
|
||||
|
||||
```go
|
||||
e.Group("/admin")
|
||||
e.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
||||
g := e.Group("/admin")
|
||||
g.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
||||
if usr == "joe" && pwd == "secret" {
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user