mythix 2.4.3 → 2.4.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
CHANGED
|
@@ -183,13 +183,13 @@ class ControllerBase {
|
|
|
183
183
|
this.responseStatusCode = parseInt(code, 10);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
async handleIncomingRequest(request, response,
|
|
187
|
-
this.route = route;
|
|
186
|
+
async handleIncomingRequest(request, response, args) {
|
|
187
|
+
this.route = args.route;
|
|
188
188
|
|
|
189
|
-
if (typeof this[controllerMethod] !== 'function')
|
|
190
|
-
this.throwInternalServerError(`Specified route handler named "${this.constructor.name}::${controllerMethod}" not found.`);
|
|
189
|
+
if (typeof this[args.controllerMethod] !== 'function')
|
|
190
|
+
this.throwInternalServerError(`Specified route handler named "${this.constructor.name}::${args.controllerMethod}" not found.`);
|
|
191
191
|
|
|
192
|
-
return await this[controllerMethod].call(this, {
|
|
192
|
+
return await this[args.controllerMethod].call(this, { body: request.body, request, response, ...args }, this.getModels());
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
async handleOutgoingResponse(_controllerResult, request, response /*, { route, controller, controllerMethod, controllerInstance, startTime, params } */) {
|