mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
46505f62db
Former-commit-id: cb775edc72bedc88aeab4c5a6de6bfc6bd56fae2
13 lines
250 B
Go
13 lines
250 B
Go
// file: web/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",
|
|
},
|
|
})
|