add fetch inquiry

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

6
src/server/server.js Normal file
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;
};