changed ticket creation and list to typescript

This commit is contained in:
canove
2020-09-19 21:00:49 -03:00
parent 5dda3aabaf
commit 1d0bbda00d
16 changed files with 473 additions and 81 deletions

View File

@@ -1,20 +0,0 @@
const express = require("express");
const isAuth = require("../../middleware/is-auth");
const WhatsAppSessionController = require("../../controllers/WhatsAppSessionController");
const routes = express.Router();
routes.get(
"/whatsappsession/:whatsappId",
isAuth,
WhatsAppSessionController.show
);
routes.delete(
"/whatsappsession/:whatsappId",
isAuth,
WhatsAppSessionController.delete
);
module.exports = routes;

View File

@@ -0,0 +1,20 @@
// const express = require("express");
// const isAuth = require("../../middleware/is-auth");
// const WhatsAppSessionController = require("../../controllers/WhatsAppSessionController");
// const routes = express.Router();
// routes.get(
// "/whatsappsession/:whatsappId",
// isAuth,
// WhatsAppSessionController.show
// );
// routes.delete(
// "/whatsappsession/:whatsappId",
// isAuth,
// WhatsAppSessionController.delete
// );
// module.exports = routes;