guild_front/src/server/server.js

14 lines
298 B
JavaScript
Raw Normal View History

2021-07-02 16:02:47 +03:00
export const fetchProfile = async (link, index) => {
const response = await fetch(`${link}${index}`);
2021-06-28 17:57:28 +03:00
let data = await response.json();
return data;
};
2021-06-29 17:58:15 +03:00
export const fetchSkills = async (link) => {
const response = await fetch(link);
let data = await response.json();
return data;
};