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