1
0
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:
dfreire 2015-10-23 23:10:17 +01:00
parent 143f563734
commit eac276d86b

View File

@ -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
}