Incluindo exibição de informações de contato no perfil

This commit is contained in:
Matheus Albino Brunhara
2022-06-07 19:20:18 -05:00
parent 4fda0c9fba
commit fb9b5f4d00
7 changed files with 184 additions and 11 deletions

View File

@@ -68,4 +68,12 @@ export async function update(userData: UpdateUserRequest) {
const response = await instance.patch(userRoutes.update.url, userData, { headers: header });
return response.data;
}
// TODO, continuar
export async function getSocialInfo(userId: string) {
updateHeader();
const response = await instance.get(userRoutes.getSocialInfo.url + `/${userId}`, { headers: header });
return response.data;
}