create section

This commit is contained in:
hamid zarghami
2026-02-02 09:33:19 +03:30
parent 6383cbb975
commit c3cb697fae
8 changed files with 100 additions and 6 deletions
+6
View File
@@ -1,6 +1,12 @@
import axios from "@/config/axios";
import type { CreateSectionType } from "../types/Types";
export const getSections = async () => {
const { data } = await axios.get(`/admin/section`);
return data;
};
export const createSection = async (params: CreateSectionType) => {
const { data } = await axios.post(`/admin/section`, params);
return data;
};