lib/hook.js
function (path, action, options) {
            options = options || routeOpts;
            options = _.extend({}, options, {action: action, controller: controllerId});
            sails.router.bind ( path, _getAction(action), null, options);

          }
function (path, action, options) {
            options = options || routeOpts;
            options = _.extend({}, options, {action: action, controller: controllerId});
            sails.router.bind ( path, _getAction(action), null, options);

          }
function ( path , action , options ) { options = options || routeOpts ; options = _ . extend ( { } , options , { action : action , controller : controllerId } ) ; sails . router . bind ( path , _getAction ( action ) , null , options ) ; }
Binds a route to the specifed action using _getAction, and sets the action and controller options for req.options
Binds a route to the specifed action using _getAction and sets the action and controller options for req . options