icon selected

This commit is contained in:
hamid zarghami
2025-12-16 15:26:19 +03:30
parent afa0bbf3fb
commit 2ab830bd48
7 changed files with 276 additions and 44 deletions
+6
View File
@@ -6,6 +6,7 @@ import type {
GetFoodDetailsResponseType,
GetFoodsParams,
GetFoodsResponseType,
GetIconsResponseType,
} from "../types/Types";
export const createFood = async (params: CreateFoodType) => {
@@ -65,3 +66,8 @@ export const updateCategory = async (
const { data } = await axios.patch(`/admin/categories/${id}`, params);
return data;
};
export const getIcons = async (): Promise<GetIconsResponseType> => {
const { data } = await axios.get<GetIconsResponseType>(`/admin/groups/icons`);
return data;
};