delete foods

This commit is contained in:
hamid zarghami
2025-11-15 15:38:28 +03:30
parent 3b55e2c3cd
commit 8900e85892
5 changed files with 41 additions and 9 deletions
+5
View File
@@ -35,3 +35,8 @@ export const getCategories = async (): Promise<GetCategoriesResponseType> => {
const { data } = await axios.get<GetCategoriesResponseType>(`/categories`);
return data;
};
export const deleteFood = async (id: string) => {
const { data } = await axios.delete(`/foods/${id}`);
return data;
};