nl_tokens: add a route to an express application
pl_tokens: function addRoute ( app , route , method , destination ) { if ( method === 'GET' ) { app . get ( route , destination ) ; } else if ( <mask> === 'POST' ) { app . post ( route , destination ) ; } else if ( method === 'PUT' ) { app . put ( route , destination ) ; } else if ( method === 'DELETE' ) { app . delete ( route , destination ) ; } else { throw new Error ( meta . module + '|addRoute|EXCEPTION|unknown method:"' + method + '"|expecter=GET,POST,PUT,DELETE' ) ; } logger . log ( 'debug' , '%s|add|method=%s|route=%s' , meta . module , method , route , meta ) ; }