title: Baucis - router documents method not found
body: <p>I'm working on a new project and I'm new with baucis for node.js. This is the code:</p>
  
  <pre><code>var name = 'order'
    , baucis = require('baucis')
    , controller = baucis.rest(name)
    , paths = config.paths;
  
  controller.request(function (req, res, next) {
    if (req.isAuthenticated()) 
      return next();
    return res.send(401);
  });
  
  controller.documents(function (req, res, next) {
    if (typeof req.baucis.documents === 'number') return next();
    [...]
    next();
  });
  </code></pre>
  
  <p>And this is the error:</p>
  
  <pre><code>/Users/fil/[...]/order.js:31
  controller.documents(function (req, res, next) {
             ^
  TypeError: Object function router(req, res, next) {
      router.handle(req, res, next);
    } has no method 'documents'
      at Object.&lt;anonymous&gt; (/Users/fil/[...]/order.js:31:12)
      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)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at /Users/fil/[...]/app.js:29:5
      at Array.forEach (native)
      at Object.&lt;anonymous&gt; (/Users/fil/[...]/app.js:27:57)
  </code></pre>
  
  <p>Any idea of the reason why this happends?</p>