mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
update all basicauth code reference
This commit is contained in:
@@ -74,10 +74,8 @@ func main() {
|
||||
}),
|
||||
})
|
||||
|
||||
auth := basicauth.New(basicauth.Config{
|
||||
Users: map[string]string{
|
||||
"myusername": "mypassword",
|
||||
},
|
||||
auth := basicauth.Default(map[string]string{
|
||||
"myusername": "mypassword",
|
||||
})
|
||||
|
||||
filesRouter.Delete("/{file:path}", auth, deleteFile)
|
||||
|
||||
Reference in New Issue
Block a user