packages/mu-router/index.js
function route (message, cb) {
    assert(message, 'route requries a valid message')
    assert(cb && (typeof cb === 'function'), 'route requires a valid callback handler')

    if (message.pattern) {
      return pattern(message, cb)
    }

    if (message.response) {
      return response(message, cb)
    }

    malformed(message, cb)
  }
function route (message, cb) {
    assert(message, 'route requries a valid message')
    assert(cb && (typeof cb === 'function'), 'route requires a valid callback handler')

    if (message.pattern) {
      return pattern(message, cb)
    }

    if (message.response) {
      return response(message, cb)
    }

    malformed(message, cb)
  }
function route ( message , cb ) { assert ( message , 'route requries a valid message' ) assert ( cb && ( typeof cb === 'function' ) , 'route requires a valid callback handler' ) if ( message . pattern ) { return pattern ( message , cb ) } if ( message . response ) { return response ( message , cb ) } malformed ( message , cb ) }
main routing function
main routing function