import axios from "axios"; import baseUrl from "./baseUrl"; export const profile = async () => { const { data } = await axios.get(`${baseUrl}/profile`); return data; }; export const profileUpload = async (formdata: FormData) => { await axios.post(`${baseUrl}/profile`, formdata); }; export const deleteUser = async () => { const success = await axios.post(`${baseUrl}/profile/delete`); return success; };