mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
* use tsx * compile * refactor Router * refactor layout * refactor home container * refactor meal container * refactor categories container * refactor category container * refactor search and profile container * refactor
9 lines
204 B
TypeScript
9 lines
204 B
TypeScript
import { getData } from "../../services/api";
|
|
|
|
export const getMeal = (id, setMeal) => {
|
|
getData(id, setMeal, "lookup");
|
|
};
|
|
|
|
export const getRandomMeal = (setMeal) => {
|
|
getData("random", setMeal);
|
|
};
|