mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
49ee8f2d75
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
13 lines
246 B
Go
13 lines
246 B
Go
// file: middleware/basicauth.go
|
|
|
|
package middleware
|
|
|
|
import "github.com/kataras/iris/middleware/basicauth"
|
|
|
|
// BasicAuth middleware sample.
|
|
var BasicAuth = basicauth.New(basicauth.Config{
|
|
Users: map[string]string{
|
|
"admin": "password",
|
|
},
|
|
})
|