In the previous chapter, we were able to show you how to get your first tiny app up and running. Now, we’ll add the topping to the pizza. Before we dive into validating our requests, we organize them. After organizing our code, we validate our input using a library called Joi (pronounced joy), authenticate our routes, and build a minimal plugin to appreciate modularized code.
Note that we haven’t added exception handling to any of our code, and that’s intentional for now. We’ll fill that gap in the next chapters as it’s very easy to follow. As a standard, unhandled ...