Refac move UserAccountType into loadUserAccount.ts

This commit is contained in:
MerlinScheurer
2025-02-13 20:51:14 +01:00
parent d96ac486e4
commit 9a31c2d100
3 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,14 @@
import APIClient from '../../functions/APIClient';
import { UserAccountType } from '../../pages/Base';
export type UserAccountType = {
id: number;
name: string;
is_superuser: boolean;
is_staff: boolean;
groups: [];
user_permissions: [];
last_login: string;
};
const loadUserAccount = async (): Promise<UserAccountType> => {
return APIClient('/api/user/account/');