kopia lustrzana https://github.com/c9/core
Simplify util and config
rodzic
9d5904e9ba
commit
bf2d7fec2f
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue