This commit is contained in:
hamid zarghami
2025-09-30 10:06:41 +03:30
parent 676eedad00
commit 2395890e6c
9 changed files with 331 additions and 4 deletions
@@ -0,0 +1,17 @@
import axios from "../../../config/axios";
import type { AboutUsResponse, CreateAboutUs } from "../types/Types";
export const getAboutUs = async (): Promise<AboutUsResponse> => {
const { data } = await axios.get("/about-us");
return data;
};
export const createAboutUs = async (params: CreateAboutUs) => {
const { data } = await axios.post("/admin/settings/about-us", params);
return data;
};
export const deleteAboutUs = async (id: string) => {
const { data } = await axios.delete(`/admin/settings/about-us/${id}`);
return data;
};