nl_tokens: Bind a route directly to a policy
pl_tokens: 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 . <mask> ) ) ; }