add fetchForm

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

No files matched your search

+2 -2
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;