mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
23 lines
599 B
JavaScript
23 lines
599 B
JavaScript
const express = require("express");
|
|
const isAuth = require("../middleware/is-auth");
|
|
|
|
const WhatsappController = require("../controllers/whatsapp");
|
|
|
|
const routes = express.Router();
|
|
|
|
routes.get("/whatsapp/session", isAuth, WhatsappController.getSession);
|
|
// routes.post(
|
|
// "/messages/:contactId",
|
|
// isAuth,
|
|
// WhatsappController.postCreateContactMessage
|
|
// );
|
|
|
|
routes.get("/whatsapp/contacts", isAuth, WhatsappController.getContacts);
|
|
// routes.post(
|
|
// "/messages/:contactId",
|
|
// isAuth,
|
|
// WhatsappController.postCreateContactMessage
|
|
// );
|
|
|
|
module.exports = routes;
|