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