@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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synchjs/ewb",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },