const { addCommunity, getAllCommunities, deleteCommunity, getCommunityById, updateCommunity, 
    addCommunityType, getAllCommunityTypes, deleteCommunityType, getCommunityTypeById, updateCommunityType, 
    saveProjectOrder,
    uploadCommunities
} = require("../controllers/community");

const communityRoutes = [
    {
        method : "POST",
        url : "/webservice/community/add-community",
        handler : addCommunity
    },
    {
        method : "POST",
        url : "/webservice/community/get-all-communities",
        handler : getAllCommunities
    },
    {
        method : "POST",
        url : "/webservice/community/delete-community",
        handler : deleteCommunity
    },
    {
        method : "POST",
        url : "/webservice/community/get-community-by-id",
        handler : getCommunityById
    },
    {
        method : "POST",
        url : "/webservice/community/edit-community",
        handler : updateCommunity
    },
    {
        method : "POST",
        url : "/webservice/community-type/add",
        handler : addCommunityType
    },
    {
        method : "POST",
        url : "/webservice/community-type/get-all",
        handler : getAllCommunityTypes
    },
    {
        method : "POST",
        url : "/webservice/community-type/delete",
        handler : deleteCommunityType
    },
    {
        method : "POST",
        url : "/webservice/community-type/get-by-id",
        handler : getCommunityTypeById
    },
    {
        method : "POST",
        url : "/webservice/community-type/edit",
        handler : updateCommunityType
    },
    {
        method : "POST",
        url : "/webservice/community/save-order",
        handler : saveProjectOrder
    },
    {
        method : "POST",
        url : "/webservice/community/mass-upload",
        handler : uploadCommunities
    },
    
];
 module.exports = communityRoutes;