mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
added new "last message" logic, before useReducer
This commit is contained in:
15
backend/routes/whatsapp.js
Normal file
15
backend/routes/whatsapp.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
// );
|
||||
|
||||
module.exports = routes;
|
||||
Reference in New Issue
Block a user