import axios from "axios"; const getUser = async (payload) => { const { data } = await axios.get("/api/user", payload); return data; }; 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 userApi = { getUser, login, signup }; export default userApi;