build-a-better-web-together icon indicating copy to clipboard operation
build-a-better-web-together copied to clipboard

There's a question here

Open bibibi-bug opened this issue 5 years ago • 1 comments

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?
})

bibibi-bug avatar Jun 17 '19 08:06 bibibi-bug

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!

kataras avatar Jul 02 '19 10:07 kataras