personal account
This commit is contained in:
@@ -24,6 +24,8 @@ import type {
|
||||
InviteLinkResponse,
|
||||
ValidateInviteResponse,
|
||||
JoinFamilyResponse,
|
||||
FamilyMember,
|
||||
LeaveFamilyResponse,
|
||||
} from '../types';
|
||||
|
||||
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '';
|
||||
@@ -70,6 +72,14 @@ export const familyApi = {
|
||||
|
||||
verifyPassword: (id: number, data: VerifyFamilyPasswordRequest) =>
|
||||
apiClient.post<VerifyFamilyPasswordResponse>(`/families/${id}/verify`, data),
|
||||
|
||||
getMembers: (familyId: number) =>
|
||||
apiClient.get<FamilyMember[]>(`/families/${familyId}/members`),
|
||||
};
|
||||
|
||||
export const userApi = {
|
||||
leaveFamily: () =>
|
||||
apiClient.post<LeaveFamilyResponse>('/me/leave-family'),
|
||||
};
|
||||
|
||||
export const categoryApi = {
|
||||
|
||||
Reference in New Issue
Block a user