mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 13:19:21 +00:00
All models using classes and sequelize migrations
This commit is contained in:
14
backend/src/routes/tickets.js
Normal file
14
backend/src/routes/tickets.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
|
||||
module.exports = routes;
|
||||
Reference in New Issue
Block a user