Skip to content

Commit

Permalink
Merge pull request #119 from penx/feature/always-mock-paths
Browse files Browse the repository at this point in the history
Allow mocks for paths without a controllerName
  • Loading branch information
theganyo authored Feb 22, 2018
2 parents 7f85797 + 3d9f3d1 commit 5db3c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fittings/swagger_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = function create(fittingDef, bagpipes) {
debug('controller in cache', controllerName);
controller = controllerFunctionsCache[controllerName];

} else {
} else if (controllerName) {

debug('loading controller %s from fs: %s', controllerName, controllersDirs);
for (var i = 0; i < controllersDirs.length; i++) {
Expand Down

0 comments on commit 5db3c38

Please # to comment.