2021-06-28 17:57:28 +03:00
|
|
|
export const fetchProfile = async (link, index = '') => {
|
|
|
|
const response = await fetch(`${link}/${index}`);
|
|
|
|
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;
|
|
|
|
};
|