updated new REST API routes per pamela's suggested architecture, and I checked them all to make sure they worked