We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317e4b9 commit b266660Copy full SHA for b266660
lib/Server.js
@@ -2375,10 +2375,6 @@ class Server {
2375
});
2376
}
2377
2378
- if (typeof this.options.onAfterSetupMiddleware === "function") {
2379
- this.options.onAfterSetupMiddleware(this);
2380
- }
2381
-
2382
if (typeof this.options.setupMiddlewares === "function") {
2383
middlewares = this.options.setupMiddlewares(middlewares, this);
2384
@@ -2395,6 +2391,10 @@ class Server {
2395
2391
(this.app).use(middleware.middleware);
2396
2392
2397
2393
2394
+
+ if (typeof this.options.onAfterSetupMiddleware === "function") {
+ this.options.onAfterSetupMiddleware(this);
+ }
2398
2399
2400
/**
0 commit comments