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 04:54:20 +02:00
var BasicAuth = basicauth.Default(map[string]string{
"admin": "password",
})