mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
changed ticket creation and list to typescript
This commit is contained in:
@@ -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;
|
||||
20
backend/src/routes/whatsappSessionRoutes.ts
Normal file
20
backend/src/routes/whatsappSessionRoutes.ts
Normal 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;
|
||||
Reference in New Issue
Block a user