mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +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/*`.
|
for routes `/admin/*`.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
echo.Group("/admin")
|
e.Group("/admin")
|
||||||
e.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
e.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
||||||
if usr == "joe" && pwd == "secret" {
|
if usr == "joe" && pwd == "secret" {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user