diff --git a/lib/director/router.js b/lib/director/router.js index 5f442eb..60a884b 100644 --- a/lib/director/router.js +++ b/lib/director/router.js @@ -426,6 +426,8 @@ Router.prototype.invoke = function (fns, thisArg, callback) { } else if (typeof fn == 'function') { fn.apply(thisArg, (fns.captures || []).concat(next)); + } else if (typeof fn === "string" && self.resource) { + self.resource[fn].apply(thisArg, (fns.captures || []).concat(next)); } }; _asyncEverySeries(fns, apply, function () {