integrating route in app.js for redirecting to correct partials and adjusting API routes