single food

This commit is contained in:
hamid zarghami
2025-12-15 12:03:34 +03:30
parent 31ff595f24
commit 1a1b953d6c
4 changed files with 125 additions and 28 deletions
@@ -0,0 +1,7 @@
import { api } from "@/config/axios";
import { FoodResponse } from "../../types/Types";
export const getFood = async (id: string): Promise<FoodResponse> => {
const { data } = await api.get<FoodResponse>(`/public/foods/${id}`);
return data;
};