mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
21 lines
424 B
JavaScript
21 lines
424 B
JavaScript
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;
|