Files
negareh-admin/src/pages/print/service/PrintService.ts
T
hamid zarghami c3cb697fae create section
2026-02-02 09:33:19 +03:30

13 lines
357 B
TypeScript

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;
};