@increase21/simplenodejs 2.0.1 → 2.0.2
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/dist/router.js +1 -1
- package/package.json +1 -1
package/dist/router.js
CHANGED
|
@@ -52,7 +52,7 @@ async function route(req, res) {
|
|
|
52
52
|
return (0, helpers_1.throwHttpError)(404, "Resource not found");
|
|
53
53
|
//also add the context to the controller instance so that it can be accessed in the methods without passing it as a parameter
|
|
54
54
|
controller.ctx = ctx;
|
|
55
|
-
const descriptors = await controller[methodName](
|
|
55
|
+
const descriptors = await controller[methodName](...id);
|
|
56
56
|
// If the controller method has already sent a response, do not proceed
|
|
57
57
|
if (res.writableEnded)
|
|
58
58
|
return;
|
package/package.json
CHANGED