delete section
This commit is contained in:
@@ -26,3 +26,8 @@ export const getSectionDetail = async (id: number) => {
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const deleteSection = async (id: number) => {
|
||||
const { data } = await axios.delete(`/admin/section/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user