iris/_examples/mvc/login/web/middleware/basicauth.go
2020-11-25 04:54:20 +02:00

11 lines
223 B
Go

// file: middleware/basicauth.go
package middleware
import "github.com/kataras/iris/v12/middleware/basicauth"
// BasicAuth middleware sample.
var BasicAuth = basicauth.Default(map[string]string{
"admin": "password",
})