title: Sails.js route redirect with a custom policy
body: <p>Situation I want to achieve:</p>
  
  <p>Request to /register runs AuthController.register</p>
  
  <p>Request to /facebook runs AuthController.register but applies a facebook policy before.</p>
  
  <p>I have created a policy in </p>
  
  <pre><code>/api/policies/facebook.js
  </code></pre>
  
  <p>like this</p>
  
  <pre><code>var graph = require('fbgraph');
  
  module.exports = function(req, res, next) {
  
      facebook_token = req.query.facebook_token;
      if(!facebook_token){
          res.send('401',{error:"Missing facebook token"});
      }
      graph.setAccessToken(facebook_token);
      graph.get("me",function(err,graph_res){
        if(err){
          res.send('401',{error:"Facebook authentication error"});
          return;
        }
        else{
          next();      
        }
      });  
  };
  </code></pre>
  
  <p>Set it up policies in</p>
  
  <pre><code>/config/policies.js
  </code></pre>
  
  <p>like this </p>
  
  <pre><code>module.exports.policies = {
     'auth': {
       'facebook': ['facebook']
     }
  }
  </code></pre>
  
  <p>I set up my routes like this</p>
  
  <pre><code>module.exports.routes = {
     'post /register': 'AuthController.register',
     'post /facebook': 'AuthController.register',
  };
  </code></pre>
  
  <p>Now the code in facebook policy doesn't get called. How would I accomplish something like this?</p>