Refactored route setup to config/routes.js.