22 lines
570 B
JavaScript
Raw Permalink Normal View History

2025-04-01 20:28:04 +05:30
// src/api/ReportSqlBuilderApi.js
import apiService from '../APIRequestService/APIService';// Assuming apiService is in the same directory
2025-05-28 16:33:02 +05:30
const BASE_URL = `${process.env.REACT_APP_API_URL}Rpt_builder2/Rpt_builder2`;
2025-04-01 20:28:04 +05:30
const ReportSqlBuilderApi = {
fetchUserDetails: async () => {
try {
const response = await apiService.get(BASE_URL);
return response.data; // Return only the data part of the response
} catch (error) {
throw error; // Let the error be handled by the calling component
}
},
};
export default ReportSqlBuilderApi;