mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
17 lines
469 B
JavaScript
17 lines
469 B
JavaScript
const express = require("express");
|
|
const isAuth = require("../middleware/is-auth");
|
|
|
|
const TicketController = require("../controllers/TicketController");
|
|
|
|
const routes = express.Router();
|
|
|
|
routes.get("/tickets", isAuth, TicketController.index);
|
|
|
|
routes.post("/tickets", isAuth, TicketController.store);
|
|
|
|
routes.put("/tickets/:ticketId", isAuth, TicketController.update);
|
|
|
|
routes.delete("/tickets/:ticketId", isAuth, TicketController.delete);
|
|
|
|
module.exports = routes;
|