mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
started messages migration to ts
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Router } from "express";
|
||||
// import isAuth from "../middleware/isAuth";
|
||||
import isAuth from "../middleware/isAuth";
|
||||
|
||||
// import { index, store } from "../controllers/MessageController";
|
||||
import * as MessageController from "../controllers/MessageController";
|
||||
|
||||
const messageRoutes = Router();
|
||||
|
||||
// messageRoutes.get("/messages/:ticketId", isAuth, index);
|
||||
messageRoutes.get("/messages/:ticketId", isAuth, MessageController.index);
|
||||
|
||||
// messageRoutes.post("/messages/:ticketId", isAuth, store);
|
||||
messageRoutes.post("/messages/:ticketId", isAuth, MessageController.store);
|
||||
|
||||
export default messageRoutes;
|
||||
|
||||
Reference in New Issue
Block a user