Errata for Chapter 2

Hey guys! Thanks for the book. I am starting learning Vapor now, and I couldn’t find easiest content on internet than the Vapor Book you are developing. It’s awesome!

I am reading the Chapter 2, and I found the situation on the image, where it is said:
‘replace router.post(“info”) with the following:’

But, if I’m not mistaken, there is no router.post(“info”) before to be coded, so this line should probably be reviewed.

Thanks again for the book! I can’t wait for the final version.

@victorsmelo it should be on page 25 - I can see it in the PDF at least!

1 Like

You’re correct, it is there. I guess was a misunderstanding from me. I thought it was a different function with only one parameter, not the router.post(InfoData.self, at: "info”)

Thanks for the answer.

Ah that’s actually a valid point! I’ll amend it for the next release

1 Like