Skip to content

Commit 7d784f8

Browse files
author
A-J Roos
committed
update API URL for recipe puppy api
1 parent f5f2704 commit 7d784f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/75 - CORS and Recipes/scripts-FINISHED.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const baseEndpoint = 'http://www.recipepuppy.com/api';
1+
const baseEndpoint = 'https://recipes.beginnerjavascript.com/api';
22
const proxy = `https://cors-anywhere.herokuapp.com/`;
33
const form = document.querySelector('form.search');
44
const recipesGrid = document.querySelector('.recipes');
@@ -23,7 +23,7 @@ async function fetchAndDisplay(query) {
2323
const recipes = await fetchRecipes(query);
2424
console.log(recipes);
2525
form.submit.disabled = false;
26-
displayRecipes(recipes.results);
26+
displayRecipes(recipes);
2727
}
2828

2929
function displayRecipes(recipes) {

0 commit comments

Comments
 (0)