Adicionando dinamica status de perfil do usuário

This commit is contained in:
Matheus Albino Brunhara
2022-06-20 17:26:47 -05:00
parent d30b3c6664
commit ccaa5a1933
4 changed files with 76 additions and 3 deletions

View File

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