Authsec_ReactBootStrapNew/src/APIServices/AddReportSQLBuilderAPI.js
2025-05-28 17:27:33 +05:30

19 lines
500 B
JavaScript

import apiService from '../APIRequestService/APIService';
const BASE_URL = `${process.env.REACT_APP_API_URL}Rpt_builder2/Rpt_builder2`;
export const addSQLReport = async (formData) => {
try {
const response = await apiService.post(BASE_URL, formData);
// console.log("add response: ",response.data);
return response.data; // Return only the data part of the response
} catch (error) {
throw error; // Let the error be handled by the calling component
}
}