added new "last message" logic, before useReducer

This commit is contained in:
canove
2020-06-17 09:03:44 -03:00
parent 794a217a4e
commit 48ee6385d3
9 changed files with 140 additions and 85 deletions

View 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;