diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 2eac24da..3ad67591 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -151,7 +151,7 @@ module.exports = function Section(name, description, types) { this.handle = (function(path, req, res, next) { var that = this; - debugger; + if (arguments.length == 2) { return this._rootHandler.apply(this, arguments); } @@ -172,7 +172,7 @@ module.exports = function Section(name, description, types) { var method = req.method.toLowerCase(); if (methods.indexOf(method) == -1) return next(); - + var handler = this.match(req, path, method); if (!handler) return next();