iris/_examples/dependency-injection/overview/web/middleware/basicauth.go

11 lines
227 B
Go
Raw Normal View History

// file: web/middleware/basicauth.go
package middleware
import "github.com/kataras/iris/v12/middleware/basicauth"
// BasicAuth middleware sample.
2020-11-25 03:54:20 +01:00
var BasicAuth = basicauth.Default(map[string]string{
"admin": "password",
})