update
This commit is contained in:
parent
27339ba1bd
commit
7103e802b0
1 changed files with 16 additions and 15 deletions
|
|
@ -7,12 +7,13 @@ export const getAllDesign = async (token: string) => {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`,
|
Authorization: `Bearer ${token}`,
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
console.log(response);
|
||||||
return data;
|
return data;
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
return { status: 500, message: error.message, token };
|
return { status: 500, message: error.message, token };
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue