Ready to create account settings route

This commit is contained in:
2021-05-13 09:27:12 +02:00
parent 71fc9dce44
commit e820c28648
4 changed files with 71 additions and 16 deletions

View File

@ -65,6 +65,17 @@ export class AccountHelper {
sessionStorage.setItem(SESSION_STORAGE_TOKEN, res.token);
}
/**
* Get information about an administrator
*
* @param id The ID of the target administrator
*/
static async getAdminInfo(id: number): Promise<AdminAccount> {
return await serverRequest("accounts/info", {
id: id,
});
}
/**
* Attempt to refresh current account information
*/