feat: creats frontend for the project

This commit is contained in:
vakabunga
2026-03-02 00:33:09 +03:00
parent 4d67636633
commit cd56e2bf9d
37 changed files with 3762 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import type { Account, UpdateAccountRequest } from '@family-budget/shared';
import { api } from './client';
export async function getAccounts(): Promise<Account[]> {
return api.get<Account[]>('/api/accounts');
}
export async function updateAccount(
id: number,
data: UpdateAccountRequest,
): Promise<Account> {
return api.put<Account>(`/api/accounts/${id}`, data);
}