@ccci/micro-server 0.0.24 → 0.0.26
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 +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78252,9 +78252,12 @@ class BaseRouter {
|
|
|
78252
78252
|
async get(req, res, next) {
|
|
78253
78253
|
let response;
|
|
78254
78254
|
try {
|
|
78255
|
+
console.log("GET :>> ");
|
|
78255
78256
|
response = await this.controller.find(req, res, next);
|
|
78257
|
+
console.log("GET :>> ", response);
|
|
78256
78258
|
res.status(200).json(response);
|
|
78257
78259
|
} catch (error) {
|
|
78260
|
+
console.log("error :>> ", error);
|
|
78258
78261
|
res.status(422).json(error);
|
|
78259
78262
|
}
|
|
78260
78263
|
}
|
|
@@ -78270,6 +78273,7 @@ class BaseRouter {
|
|
|
78270
78273
|
async post(req, res, next) {
|
|
78271
78274
|
let response;
|
|
78272
78275
|
try {
|
|
78276
|
+
console.log("POST :>> ");
|
|
78273
78277
|
response = await this.controller.create(req, res, next);
|
|
78274
78278
|
res.status(200).json(response);
|
|
78275
78279
|
} catch (error) {
|
|
@@ -78279,6 +78283,7 @@ class BaseRouter {
|
|
|
78279
78283
|
async getId(req, res, next) {
|
|
78280
78284
|
let response;
|
|
78281
78285
|
try {
|
|
78286
|
+
console.log("GET ID :>> ");
|
|
78282
78287
|
response = await this.controller.findById(req, res, next);
|
|
78283
78288
|
res.status(200).json(response);
|
|
78284
78289
|
} catch (error) {
|
|
@@ -78288,6 +78293,7 @@ class BaseRouter {
|
|
|
78288
78293
|
async update(req, res, next) {
|
|
78289
78294
|
let response;
|
|
78290
78295
|
try {
|
|
78296
|
+
console.log("UPDATE :>> ");
|
|
78291
78297
|
response = await this.controller.update(req, res, next);
|
|
78292
78298
|
res.status(200).json(response);
|
|
78293
78299
|
} catch (error) {
|