import { adminRequest } from "@/lib/admin-http"; import { API_V1_PREFIX } from "@/api/paths"; const A = `${API_V1_PREFIX}/admin`; export type AdminSettingItem = { key: string; value: unknown; group: string; description: string | null; }; export type AdminSettingListResponse = { items: AdminSettingItem[]; }; export async function getAdminSettings( group: string, ): Promise { return adminRequest.get(`${A}/settings`, { params: { group }, }); } export async function updateAdminSetting( key: string, value: unknown, ): Promise { return adminRequest.put(`${A}/settings/${key}`, { value }); }