8 lines
294 B
TypeScript
8 lines
294 B
TypeScript
import type { SystemConfig } from "../../types";
|
|
import { apiRequest } from "./client";
|
|
|
|
export const settingsApi = {
|
|
get: () => apiRequest<SystemConfig>("/api/settings"),
|
|
update: (payload: Partial<SystemConfig>) => apiRequest<SystemConfig>("/api/settings", { method: "PUT" }, payload),
|
|
};
|