mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-06-20 00:25:19 +00:00
Ready to create account settings route
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user