lib/router.js
function controllerMethod (controller, method) {
  if (controller && controller[method]) {
    return controller[method]
  }

  // Handle hello-based Controller classes
  if (isClass(controller) && controller.action) {
    return controller.action(method)
  }

  return notImplemented
}
function controllerMethod (controller, method) {
  if (controller && controller[method]) {
    return controller[method]
  }

  // Handle hello-based Controller classes
  if (isClass(controller) && controller.action) {
    return controller.action(method)
  }

  return notImplemented
}
function controllerMethod ( controller , method ) { if ( controller && controller [ method ] ) { return controller [ method ] } // Handle hello-based Controller classes if ( isClass ( controller ) && controller . action ) { return controller . action ( method ) } return notImplemented }
Returns a wrapper to be used in the router for calling a given controller method.

@param {Object|Controller} controller - The controller
@param {String} method - The method on the controller to call
@returns {Function} The controller method to call
Returns a wrapper to be used in the router for calling a given controller method .