title: express-resource custom mapping
body: <p>I can't find any decent documentation on this that contains any depth when requiring with app.resource.</p>
  
  <p>The only information that I can find is creating the variable within the current file. <a href="https://github.com/visionmedia/express-resource/blob/master/examples/user.js" rel="nofollow">Here</a></p>
  
  <p>The current code that I have is below:</p>
  
  <pre><code>var favs = app.resource('favs', require('./modules/favs'));
  favs.map('get', '/user', favs.buses);
  </code></pre>
  
  <p>However it comes back saying that it is undefined?</p>
  
  <p>In the module favs I have.</p>
  
  <pre><code>exports.buses = function (req, res) {
      res.render('favs/buses', {
          title: 'Bus Stops'
      });
  });
  </code></pre>