jcc-express-mvc 1.2.3 → 1.2.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.
- package/package.json +1 -1
- package/src/utils/index.js +2 -4
package/package.json
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -119,12 +119,10 @@ class Util {
|
|
|
119
119
|
try {
|
|
120
120
|
if (this.classController(callback)) {
|
|
121
121
|
if (this.isMiddleware()) {
|
|
122
|
-
this.app[httpMethod](this.resolvePath(path), [
|
|
122
|
+
return this.app[httpMethod](this.resolvePath(path), [
|
|
123
123
|
this.middlewares,
|
|
124
124
|
asyncHandler(this.controller[callback]),
|
|
125
125
|
]);
|
|
126
|
-
|
|
127
|
-
return (this.middlewares = null);
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
return this.app[httpMethod](
|
|
@@ -133,7 +131,7 @@ class Util {
|
|
|
133
131
|
);
|
|
134
132
|
}
|
|
135
133
|
if (this.isMiddleware()) {
|
|
136
|
-
this.app[httpMethod](this.resolvePath(path), [
|
|
134
|
+
return this.app[httpMethod](this.resolvePath(path), [
|
|
137
135
|
this.middlewares,
|
|
138
136
|
asyncHandler(this.validateCallback(callback)),
|
|
139
137
|
]);
|