2022-01-06 01:26:15 +00:00
|
|
|
import express from "express";
|
|
|
|
import isAuth from "../middleware/isAuth";
|
|
|
|
|
|
|
|
import * as WhatsAppController from "../controllers/WhatsAppController";
|
|
|
|
|
|
|
|
const whatsappRoutes = express.Router();
|
|
|
|
|
2022-01-10 20:10:20 +00:00
|
|
|
|
|
|
|
|
2022-01-06 01:26:15 +00:00
|
|
|
whatsappRoutes.get("/whatsapp/", isAuth, WhatsAppController.index);
|
|
|
|
|
|
|
|
whatsappRoutes.post("/whatsapp/", isAuth, WhatsAppController.store);
|
|
|
|
|
|
|
|
whatsappRoutes.get("/whatsapp/:whatsappId", isAuth, WhatsAppController.show);
|
|
|
|
|
|
|
|
whatsappRoutes.put("/whatsapp/:whatsappId", isAuth, WhatsAppController.update);
|
|
|
|
|
|
|
|
whatsappRoutes.delete(
|
|
|
|
"/whatsapp/:whatsappId",
|
|
|
|
isAuth,
|
|
|
|
WhatsAppController.remove
|
|
|
|
);
|
|
|
|
|
|
|
|
export default whatsappRoutes;
|