const { getAllContactDetails, addContact, isEmailExist, deleteContact, getContactById, editContact, viewContact } = require("../controllers/contacts");

const contactRoutes = [
  {
    method: "POST",
    url: "/webservice/contacts/get-all-contact-details",
    handler: getAllContactDetails,
  },
  {
    method: "POST",
    url: "/webservice/contacts/add-contact",
    handler: addContact,
  },
  {
    method: "POST",
    url: "/webservice/contacts/is-email-exist",
    handler: isEmailExist,
  },
  {
    method: "POST",
    url: "/webservice/contacts/delete-contact",
    handler:deleteContact
  },
  {
    method: "POST",
    url: "/webservice/contacts/get-contact-by-id",
    handler:getContactById
  },
  {
    method: "POST",
    url: "/webservice/contacts/edit-contact",
    handler:editContact
  },
  {
    method: "POST",
    url: "/webservice/contacts/view-contact",
    handler:viewContact
  },
];

module.exports = contactRoutes;
