mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 19:09:29 +00:00
18 lines
357 B
TypeScript
18 lines
357 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
export type UserAccountType = {
|
|
id: number;
|
|
name: string;
|
|
is_superuser: boolean;
|
|
is_staff: boolean;
|
|
groups: [];
|
|
user_permissions: [];
|
|
last_login: string;
|
|
};
|
|
|
|
const loadUserAccount = async () => {
|
|
return APIClient<UserAccountType>('/api/user/account/');
|
|
};
|
|
|
|
export default loadUserAccount;
|