mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
b0f8329768
https://github.com/kataras/iris/blob/master/HISTORY.md#th-12-october-2017--v852 Former-commit-id: 2501cf6066812c2aac158d8d6cd4e992a2b538f9
13 lines
250 B
Go
13 lines
250 B
Go
// file: web/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",
|
|
},
|
|
})
|