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