import axios from "axios"; import endpoints from "./endpoints"; const login = async (email, password) => { const payload = { email, password }; const { data } = await axios.post(`${endpoints.API_BASE_URL}/`, payload); return data; }; export default login;