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