delete section

This commit is contained in:
hamid zarghami
2026-02-02 10:19:39 +03:30
parent 7f2000ec6d
commit 41acb02611
3 changed files with 30 additions and 5 deletions
+5
View File
@@ -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;
};