mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
Nothing special here. Come on post some good feature requests, I'm starting to get bored!
Former-commit-id: 6afc6ab3a3d2c35bc588dc91c132f1f7a6b24db3
This commit is contained in:
@@ -10,7 +10,8 @@ import (
|
||||
|
||||
func main() {
|
||||
app := iris.New()
|
||||
app.Adapt(httprouter.New()) // adapt a router first of all
|
||||
app.Adapt(iris.DevLogger()) // adapt a simple internal logger to print any errors
|
||||
app.Adapt(httprouter.New()) // adapt a router, you can use gorillamux too
|
||||
|
||||
authConfig := basicauth.Config{
|
||||
Users: map[string]string{"myusername": "mypassword", "mySecondusername": "mySecondpassword"},
|
||||
|
||||
Reference in New Issue
Block a user