iris/_examples/mvc/using-method-result/middleware/basicauth.go

13 lines
246 B
Go
Raw Normal View History

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