const { getAllOpportunities, addOpportunity, deleteOpportunity, viewOpportunity, editOpportunity } = require("../controllers/opportunities");

const opportunitiesRoutes = [
    {
        method : "POST",
        url : "/webservice/opportunities/get-all-opportunities",
        handler : getAllOpportunities
    },
    {
        method : "POST",
        url : "/webservice/opportunities/add-opportunity",
        handler : addOpportunity
    },
    {
        method : "POST",
        url : "/webservice/opportunities/delete-opportunity",
        handler : deleteOpportunity
    },
    {
        method : "POST",
        url : "/webservice/opportunities/view-opportunity",
        handler : viewOpportunity
    },
    {
        method : "POST",
        url : "/webservice/opportunities/edit-opportunity",
        handler : editOpportunity
    },
];
 module.exports = opportunitiesRoutes;