Refac APIClient to return data, error and status as object

This commit is contained in:
MerlinScheurer
2025-03-20 20:30:08 +01:00
parent 52083e6fb7
commit edcede5de6
67 changed files with 660 additions and 544 deletions

View File

@@ -10,8 +10,8 @@ export type UserAccountType = {
last_login: string;
};
const loadUserAccount = async (): Promise<UserAccountType> => {
return APIClient('/api/user/account/');
const loadUserAccount = async () => {
return APIClient<UserAccountType>('/api/user/account/');
};
export default loadUserAccount;