@synchjs/ewb 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -263,7 +263,7 @@ export class Server {
|
|
|
263
263
|
? this._container.get(controller.target)
|
|
264
264
|
: new controller.target();
|
|
265
265
|
const router = express.Router({ mergeParams: true });
|
|
266
|
-
if (controller.middlewares) {
|
|
266
|
+
if (controller.middlewares && controller.middlewares.length > 0) {
|
|
267
267
|
router.use(...controller.middlewares);
|
|
268
268
|
}
|
|
269
269
|
for (const route of controller.routes) {
|