import axios from "axios"; const getUser = async (id) => { const { data } = await axios.get(`/api/getUser/${id}`); 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;