{"size": 506, "ext": "js", "max_stars_repo_path": "src/routes/chat.js", "max_stars_repo_name": "AkbarZul/BlanjaAPI", "max_stars_repo_stars_event_min_datetime": "2021-07-28T13:55:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-28T13:55:00.000Z", "max_issues_repo_path": "src/routes/chat.js", "max_issues_repo_name": "AkbarZul/BlanjaAPI", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/routes/chat.js", "max_forks_repo_name": "AkbarZul/BlanjaAPI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 46.0, "max_line_length": 80, "alphanum_fraction": 0.7984189723}

const chatRouter = require("express").Router();
const chatController = require("../controllers/chat");
const checkToken = require("../helpers/middlewares/checkToken");

chatRouter.post("/addMessage", checkToken, chatController.addNewMessage);
chatRouter.get("/chatRoomSeller", checkToken, chatController.getListChatSeller);
chatRouter.get("/chatRoomBuyyer", checkToken, chatController.getListChatBuyyer);
chatRouter.get("/newMessage/:chatroom", chatController.getNewMessage);

module.exports = chatRouter;