After changing into your project directory for Galvanize Bookshelf, ensure the master branch is clean and make a new branch called validations
cd PATH_TO/galvanize_bookshelf
git checkout -b validations
In a new directory called validations, create validation files for each routes file
mkdir validations
touch validations/users.js
touch validations/session.js
touch validations/books.js
touch validations/authors.js
Add the rules in each that validates the req.body
of all POST
or PUT
Add the rules to validate any of the PATCH
requests