This commit is contained in:
2024-11-16 14:41:12 +01:00
parent 6a57f63784
commit d41c876258
12 changed files with 186 additions and 12 deletions
@@ -18,6 +18,19 @@ export default class UserAccountService {
});
}
public getCurrentUser(): Promise<IUserAccount> {
return new Promise<IUserAccount>((resolve, reject) => {
axios
.get(`${baseApiUrl}/currentUser`)
.then(res => {
resolve(res.data);
})
.catch(err => {
reject(err);
});
});
}
public retrieve(): Promise<any> {
return new Promise<any>((resolve, reject) => {
axios