add default next()
This commit is contained in:
parent
a58819e260
commit
817739637d
1 changed files with 5 additions and 1 deletions
6
app.js
6
app.js
|
|
@ -432,7 +432,11 @@ function string2obj(s) {
|
|||
}
|
||||
|
||||
function handleSetup(req, res, next) {
|
||||
if (setupFn) setupFn(req, res, next);
|
||||
if (setupFn) {
|
||||
setupFn(req, res, next);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
}
|
||||
|
||||
function handleVersion(req, res, next) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue