mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
f09efac326
commit
d5373e1402
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user