mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
14 lines
406 B
JavaScript
14 lines
406 B
JavaScript
const express = require("express");
|
|
const isAuth = require("../middleware/is-auth");
|
|
|
|
const ContactController = require("../controllers/contact");
|
|
|
|
const routes = express.Router();
|
|
|
|
routes.get("/contacts", isAuth, ContactController.getContacts);
|
|
// routes.post(ContactController.postCreateContact);
|
|
|
|
routes.post("/contacts", isAuth, ContactController.createContact);
|
|
|
|
module.exports = routes;
|