1
0
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:
Gerasimos (Makis) Maropoulos
2020-11-25 04:54:20 +02:00
parent afa1d89a23
commit ba30ef4de1
5 changed files with 14 additions and 20 deletions

View File

@@ -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)