import { api } from "@/api/client"; import type { AppSettings } from "@/types"; export function fetchSettings() { return api.get("/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) { return api.patch("/settings", input); }