diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 1e8edbfa..9d482dcc 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -70,6 +70,13 @@ module.exports = function Section(name, description, types) { return section; }; + this.mount = function( name, section ){ + if (!sections[name]) + sections[name] = []; + + sections[name].push(section); + }; + this._rootHandler = function(req, res) { this.handle(req, res, function(err) { if (err) {