DeepakD
Reactiflux4y ago
3 replies
Deepak

Deepak – 06-27 Jul 6

hello guys, Can someone help me to construct a dynamic url ?
I am building a recipe search app using an api. I need to construct a dynamic url based on selected user input
const category={
  q="",
  mealtype="breakfast",
  cuisinetype="American",
  dishType="Soup"
}

const base = `https://api.edamam.com/api/recipes/v2?type=public&q=${query}=&app_id=${app_id}&app_key=${app_key}`;
Was this page helpful?