Now that you have a good understanding of the Knex's capabilities, let's look at adding Knex to our Express app endpoints. Quit the nodemon drills.js
process and start the server.
Open Postman and navigate to http://localhost:8080/restaurants
. You should get back a list of restaurants. The SELECT statement is straight forward, the only thing to point out is the addition of in the `.then(results => res.json(results) );
Let's tackle the grade
first.