axios.post('url', {"body":data}, {
headers: {
'Content-Type': 'application/json'
}
}
)
export const imgUpload = (data) => client.post('post/2/thumbnail', JSON.stringify(data), { headers });
const headers = {
post: {
'Content-Type': '',
},
data: 'data',
encType : "multipart/form-data", //필수 아님, 파일을 넣을거면 필수(e)
dataType: "json",
processData: false,
};