22 lines
570 B
JavaScript
Raw Normal View History

2025-06-20 03:59:20 +00:00
// src/api/ReportSqlBuilderApi.js
import apiService from '../APIRequestService/APIService';// Assuming apiService is in the same directory
const BASE_URL = `${process.env.REACT_APP_API_URL}Rpt_builder2/Rpt_builder2`;
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;