index.js
function (event) {
            // Only pay attention to delegated route events
            // if `policy` is declared in event.target
            if ( !event.target || !event.target.policy ) {
                return;
            }

            // Bind policy function to route
            var fn = this.lookupFn(event.target.policy, 'config.routes');
            sails.router.bind(event.path, fn, event.verb, _.merge(event.options, event.target));
        }
function (event) {
            // Only pay attention to delegated route events
            // if `policy` is declared in event.target
            if ( !event.target || !event.target.policy ) {
                return;
            }

            // Bind policy function to route
            var fn = this.lookupFn(event.target.policy, 'config.routes');
            sails.router.bind(event.path, fn, event.verb, _.merge(event.options, event.target));
        }
Bind a route directly to a policy