title: How can I fix this node.js path issue?
body: <p>I'm in the process of refactoring my server.js file and trying to incorporate MVC pattern. I'm running into a problem trying to access my controller from my routes.js. I've tried just about every variation of absolute and relative path that I can think but I must be missing something.
  Here is my directory structure:
  <img src="https://i.stack.imgur.com/iSbcz.png" alt="enter image description here"></p>
  
  <p>And from my routes.js, here is my code:</p>
  
  <pre><code>module.exports = function ( app, passport, auth ) {
      var Clients = require('controllers/clients');
      app.get('/clients', Clients.list);
  }
  </code></pre>
  
  <p>I don't think this is relevant, but here is my clients controller:</p>
  
  <pre><code>var mongoose = require('mongoose')
      , Client  = mongoose.model('Client');
  
  exports.list = function( req, res ) {
      Client.find( function( err, clients ) {
          res.renderPjax('clients/list', { clients: clients, user: req.user });
      });
  }
  </code></pre>
  
  <p>Here is the error that I'm getting when trying to access my controller from routes:</p>
  
  <pre><code>module.js:340
      throw err;
            ^
  Error: Cannot find module 'controllers/clients'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at module.exports (/Users/sm/Desktop/express3-mongoose-rememberme/app/routes.js:5:16)
      at Object.&lt;anonymous&gt; (/Users/sm/Desktop/express3-mongoose-rememberme/server.js:334:24)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
  </code></pre>
  
  <p>I'm sure it's something simple that I'm over looking. How can I access my controller from 
  my routes?</p>