// 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;

