This commit is contained in:
hamid zarghami
2025-05-21 16:39:59 +03:30
parent cce765007c
commit 58678d585b
6 changed files with 122 additions and 118 deletions
+12
View File
@@ -0,0 +1,12 @@
import axios from "../../../config/axios";
import { SettingType } from "../types/Types";
export const getSetting = async () => {
const { data } = await axios.get("/business/settings");
return data;
};
export const updateSetting = async (params: SettingType) => {
const { data } = await axios.patch("/business/settings", params);
return data;
};