@ccci/micro-server 0.0.25 → 0.0.27
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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78240,6 +78240,7 @@ class BaseRouter {
|
|
|
78240
78240
|
grantPublicAccess = false;
|
|
78241
78241
|
controller;
|
|
78242
78242
|
constructor(controller) {
|
|
78243
|
+
console.log("controller :>> ", controller);
|
|
78243
78244
|
this.controller = controller;
|
|
78244
78245
|
this.get = this.get.bind(this);
|
|
78245
78246
|
this.post = this.post.bind(this);
|
|
@@ -78252,10 +78253,12 @@ class BaseRouter {
|
|
|
78252
78253
|
async get(req, res, next) {
|
|
78253
78254
|
let response;
|
|
78254
78255
|
try {
|
|
78255
|
-
console.log("GET :>> ");
|
|
78256
|
+
console.log("GET :>> ", this.controller);
|
|
78256
78257
|
response = await this.controller.find(req, res, next);
|
|
78258
|
+
console.log("GET :>> ", response);
|
|
78257
78259
|
res.status(200).json(response);
|
|
78258
78260
|
} catch (error) {
|
|
78261
|
+
console.log("error :>> ", error);
|
|
78259
78262
|
res.status(422).json(error);
|
|
78260
78263
|
}
|
|
78261
78264
|
}
|