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