mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
25 lines
483 B
JavaScript
25 lines
483 B
JavaScript
const express = require("express");
|
|
const isAuth = require("../middleware/is-auth");
|
|
|
|
const MessangeController = require("../controllers/message");
|
|
|
|
const routes = express.Router();
|
|
|
|
routes.post(
|
|
"/messages/setread",
|
|
isAuth,
|
|
MessangeController.postUpdateMessageStatus
|
|
);
|
|
routes.get(
|
|
"/messages/:contactId",
|
|
isAuth,
|
|
MessangeController.getContactMessages
|
|
);
|
|
routes.post(
|
|
"/messages/:contactId",
|
|
isAuth,
|
|
MessangeController.postCreateContactMessage
|
|
);
|
|
|
|
module.exports = routes;
|