import axios from "axios"; const login = async (payload) => { const { data } = await axios.post("/api/login", payload); return data; }; const signup = async (payload) => { const { data } = await axios.post("/api/signup", payload); return data; }; const profileApi = { login, signup }; export default profileApi;