1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-11-16 20:53:59 -08:00
parent f09efac326
commit d5373e1402

View File

@ -82,7 +82,7 @@ In the code below, we create an admin group which requires basic HTTP authentica
for routes `/admin/*`.
```go
echo.Group("/admin")
e.Group("/admin")
e.Use(mw.BasicAuth(func(usr, pwd string) bool {
if usr == "joe" && pwd == "secret" {
return true