Files
aurum/frontend/src/api/settings.ts
ZProger fe9b079c12 Initial public release
Aurum — a self-hosted personal finance operating system: cash flow,
net worth tracking, budgets, goals, recurring payments, reports,
proactive alerts, and a compound-interest returns calculator, all
bilingual (RU/EN) and mobile-first. Ships as a three-container Docker
Compose stack (Postgres + FastAPI + nginx-served React frontend).

See README.md for setup and CONTRIBUTING.md for development.
2026-08-16 18:39:52 +03:00

13 lines
416 B
TypeScript

import { api } from "@/api/client";
import type { AppSettings } from "@/types";
export function fetchSettings() {
return api.get<AppSettings>("/settings");
}
// Partial — the backend applies whatever fields are present (PATCH
// semantics), so callers only send the field(s) they're changing.
export function updateSettings(input: Partial<AppSettings>) {
return api.patch<AppSettings>("/settings", input);
}