import { api } from "../utils/axiosClient";

const ProjectRepository = {
  getProjectList: () => api.get("/api/project/list"),
  getProjectByprojectId: (projetid) =>
    api.get(`/api/project/details/${projetid}`),

  getProjectAllocation: (projetid) =>
    api.get( `api/project/allocation/${ projetid }` ),
  
  getEmployeesByProject:(projectId)=>api.get(`/api/Project/employees/get/${projectId}`),

  manageProject: (data) => api.post("/api/project", data),
  // updateProject: (data) => api.post("/api/project/update", data),

  manageProjectAllocation: (data) => api.post("/api/project/allocation", data),
  manageProjectInfra: (data) => api.post("/api/project/manage-infra", data),
  manageProjectTasks: (data) => api.post("/api/project/manage-infra", data),

  updateProject: (id, data) => api.put(`/api/project/update/${id}`, data),
  deleteProject: (id) => api.delete(`/projects/${id}`),
};

export default ProjectRepository;
