mirror of
http://88.130.71.182:3000/BlitTech/badoHair_fe.git
synced 2026-06-13 11:57:39 +00:00
16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
import { api } from "@/lib/api";
|
|
|
|
export interface StoreSetting {
|
|
key: string;
|
|
value: unknown;
|
|
updated_at: string;
|
|
}
|
|
|
|
export async function adminGetSettings(): Promise<StoreSetting[]> {
|
|
return api.get<StoreSetting[]>("/admin/settings");
|
|
}
|
|
|
|
export async function adminUpdateSetting(key: string, value: unknown): Promise<StoreSetting> {
|
|
return api.put<StoreSetting>(`/admin/settings/${key}`, { value });
|
|
}
|