title: Can I use 'res.sendFile' and 'res.json' together?
body: <p>Currently I'm using a controller within my Express app to handle routing. When a certain route is hit I call <code>pagesController.showPlayer</code> which serves my <code>index.html</code>. Here is the controller:</p>
  
  <pre><code>'use strict';
  
  var path = require('path');
  
  var player = function(req, res) {
    res.sendFile(path.join(__dirname, '../assets', 'index.html'));
  };
  
  module.exports = {
    player: player
  };
  </code></pre>
  
  <p>I need to also send back a JSON object representing the user who is requesting this route.
  However, when I add <code>res.json({user: req.user});</code> all I get back is this JSON object, <code>index.html</code> is no longer shown.</p>