mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
📂Better folder structures and file names in backend
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
const express = require("express");
|
||||
const isAuth = require("../middleware/is-auth");
|
||||
|
||||
const ContactController = require("../controllers/contact");
|
||||
const ContactController = require("../controllers/ContactController");
|
||||
|
||||
const routes = express.Router();
|
||||
|
||||
routes.get("/contacts", isAuth, ContactController.getContacts);
|
||||
routes.get("/contacts", isAuth, ContactController.index);
|
||||
// routes.post(ContactController.postCreateContact);
|
||||
|
||||
routes.post("/contacts", isAuth, ContactController.createContact);
|
||||
routes.post("/contacts", isAuth, ContactController.store);
|
||||
|
||||
module.exports = routes;
|
||||
|
||||
Reference in New Issue
Block a user