Skip to content

Commit b266660

Browse files
authored
Update Server.js
1 parent 317e4b9 commit b266660

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Server.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2375,10 +2375,6 @@ class Server {
23752375
});
23762376
}
23772377

2378-
if (typeof this.options.onAfterSetupMiddleware === "function") {
2379-
this.options.onAfterSetupMiddleware(this);
2380-
}
2381-
23822378
if (typeof this.options.setupMiddlewares === "function") {
23832379
middlewares = this.options.setupMiddlewares(middlewares, this);
23842380
}
@@ -2395,6 +2391,10 @@ class Server {
23952391
(this.app).use(middleware.middleware);
23962392
}
23972393
});
2394+
2395+
if (typeof this.options.onAfterSetupMiddleware === "function") {
2396+
this.options.onAfterSetupMiddleware(this);
2397+
}
23982398
}
23992399

24002400
/**

0 commit comments

Comments
 (0)