add fetchForm

This commit is contained in:
Hope87
2021-07-06 10:53:50 +03:00
parent e8b7fbb2f3
commit a5820e0edb
7 changed files with 61 additions and 136 deletions

View File

@ -23,9 +23,9 @@ export const fetchForm = async (link, info) => {
const response = await fetch(link, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Type': 'multipart/form-data',
},
body: JSON.stringify(info),
body: info,
});
return response;