Now you need to implement the route code to support interaction with the MongoDB model. The code in Listing 26.9, later in this chapter, implements the database interaction routes in a separate file to keep the functionality separated from the normal routing. Due to the size of the users_conroller.js
code, the following sections discuss each of the routes individually.