// services/employeeService.js
// import API from './api';

// export const getEmployees = () => API.get('/employees');
export const getEmployees = async () => {
  try {
    const response = await axios.get(API_URL);
    return response.data;
  } catch (error) {
    console.error('Error fetching employees:', error);
    return [];
  }
};
