add fetch inquiry

This commit is contained in:
Hope87 committed 2021-06-28 17:57:28 +03:00
1 parent b0ca345dbb
commit 8e607ee21f
4 files changed
+84 -53

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export const fetchProfile = async (link, index = '') => {
const response = await fetch(`${link}/${index}`);
let data = await response.json();
return data;
};