BraveBeehive/LenderBee — pull request #51 by JonathanWarrick (2014-09-05 20:23:29+00:00)
Title: Restructure to routes.js

Completely restructures the routes.js file to have placeholder routes for all user actions. A few notes:
-Please use these endpoints for all front-end work.
-Any util.function that is not commented out exists in Tommy's utility file.
-Any util.function that is commented out needs to be created in the utility file to match the necessary query.
-I need to add in the functionality that redirects users only if they're logged-in (the utility function I built at the bottom of the file).

This should be pretty isolated, but please let me know if anyone has any issues with the endpoints or if I have mislabeled/forgotten any routing.

Feel free to adjust my files later today or tomorrow if you need to adjust endpoints, update routing, etc. Otherwise, please leave me a list of to-dos for Sunday!