mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Simplify util and config
This commit is contained in:
parent
9d5904e9ba
commit
bf2d7fec2f
4
node_modules/frontdoor/lib/section.js
generated
vendored
4
node_modules/frontdoor/lib/section.js
generated
vendored
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user