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


const AttendanceRepository =  {
  markAttendance:(data)=>api.post("/api/attendance/record",data),
  getAttendance:(id)=>api.get(`api/attendance/project/team?projectId=${id}`),
  getAttendanceFilteredByDate:(id,date)=>api.get(`api/attendance/project/team?projectId=${id+"&date="+date}`),
  getAttendanceLogs: ( id ) => api.get( `api/attendance/log/attendance/${ id }` ),
  getRegularizeList: (id)=> api.get(`api/attendance/regularize?projectId=${id}`)

}

export default AttendanceRepository;