mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
d55bb34766
Former-commit-id: f73cbf6010595c639f6c5b5119e2ec41bc9802a5
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",
|
|
},
|
|
})
|