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