create section
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user