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) {
|
this.handle = (function(path, req, res, next) {
|
||||||
var that = this;
|
var that = this;
|
||||||
debugger;
|
|
||||||
if (arguments.length == 2) {
|
if (arguments.length == 2) {
|
||||||
return this._rootHandler.apply(this, arguments);
|
return this._rootHandler.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ module.exports = function Section(name, description, types) {
|
||||||
var method = req.method.toLowerCase();
|
var method = req.method.toLowerCase();
|
||||||
if (methods.indexOf(method) == -1)
|
if (methods.indexOf(method) == -1)
|
||||||
return next();
|
return next();
|
||||||
|
|
||||||
var handler = this.match(req, path, method);
|
var handler = this.match(req, path, method);
|
||||||
if (!handler)
|
if (!handler)
|
||||||
return next();
|
return next();
|
||||||
|
|
Ładowanie…
Reference in New Issue