17 lines
470 B
JavaScript
17 lines
470 B
JavaScript
import apiService from '../APIRequestService/APIService'; // Assuming the shared API service is in `apiService.js`
|
|
|
|
const editReport = async (id, payload) => {
|
|
try {
|
|
const response = await apiService.put(`Rpt_builder2_lines/update/${id}`, payload);
|
|
console.log("Edit api report base url ", response.data)
|
|
return response.data;
|
|
} catch (error) {
|
|
console.error("Error in editReport:", error);
|
|
throw error;
|
|
}
|
|
};
|
|
|
|
export default {
|
|
editReport,
|
|
};
|