nl_tokens: add a route to an express application
pl_tokens: function add ( app , route , <mask> , destination ) { var methods ; if ( typeof ( method ) === 'string' ) { methods = method . split ( ',' ) ; } else if ( typeof ( method ) === 'object' ) { // array methods = method ; } else { throw new Error ( meta . module + '|add|EXCEPTION|unknown method:"' + typeof ( method ) + '"|expecter=string,object(array)' ) ; } for ( var i = 0 ; i < methods . length ; ++ i ) { addRoute ( app , route , methods [ i ] , destination ) ; } }