import apiService from 'APIRequestService/APIService';

export const getReports = async () => {
    try {
      const response = await apiService.get('/Rpt_builder2/Rpt_builder2'); // Assuming /report_builder is the API endpoint
      return response.data.filter((item) => !item.isSql); // Filter data as needed
    } catch (error) {
      throw error; // Propagate error to be handled in the calling component
    }
  };