mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
13 lines
370 B
JavaScript
13 lines
370 B
JavaScript
const express = require("express");
|
|
const isAuth = require("../middleware/is-auth");
|
|
|
|
const MessageController = require("../controllers/MessageController");
|
|
|
|
const routes = express.Router();
|
|
|
|
routes.get("/messages/:contactId", isAuth, MessageController.index);
|
|
|
|
routes.post("/messages/:contactId", isAuth, MessageController.store);
|
|
|
|
module.exports = routes;
|