feat: finished multiple whatsapps handle in frontend

This commit is contained in:
canove
2020-09-06 12:09:12 -03:00
parent f423dd60bc
commit b0f28c16ad
17 changed files with 595 additions and 511 deletions

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;