Untitled
unknown
plain_text
a month ago
968 B
2
Indexable
Never
const express = require('express'); const chatCountroller = require('../controllers/chatController'); const validateToken = require('./../middleware/validateToken'); const chatRouter = express.Router(); chatRouter.post('/opennewchat', chatCountroller.createNewChat); //chatRouter.get('/salesmen/:id',validateToken.validateToken, chatCountroller.getSalesManChat); chatRouter.get('/salesmen/:id',chatCountroller.getSalesManChatForRetailer); chatRouter.get('/salesmenlist/:id', chatCountroller.getSalesMenList); chatRouter.get('/retailers/:id', chatCountroller.getRetailersChat); chatRouter.post('/add_saleman_to_retailer', chatCountroller.SetSalesmanToRetailer); chatRouter.post('/messages',validateToken.validateToken, chatCountroller.getMessagesChat); chatRouter.post('/send-message',chatCountroller.sendMessage); chatRouter.post('/change-message-status',validateToken.validateToken, chatCountroller.setMessagesVue); module.exports = chatRouter;
Leave a Comment