build-a-better-web-together
build-a-better-web-together copied to clipboard
There's a question here
app := iris.New()
app.PartyFunc("/users", func(users iris.Party) {
users.Use(myAuthMiddlewareHandler)
// http://localhost:8080/users/42/profile
users.Get("/{id:int}/profile", userProfileHandler)
// http://localhost:8080/users/messages/1
//users.Get("/inbox/{id:int}", userMessageHandler)There's a question here
users.Get("/messages/{id:int}", userMessageHandler)//Right?
})
You mean the comment and the declaration below don't match, it's fixed now. Thanks a lot. Note that I am preparing a new Iris wiki and an e-book for the upcoming version, stay tuned!