Skip to content
Snippets Groups Projects
Commit b6b4ec6d authored by zh393's avatar zh393
Browse files

changed api key

parent 717a7aef
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ function Form() {
event.preventDefault()
let base_url = "https://api.spoonacular.com/food/ingredients/search"
const params = new URLSearchParams({
apiKey: "37299eda2bf644f7a90f8edb1736f7d6",
apiKey: "4ce04e457c8348cfaec8ee0c7100b2f8",
query: search,
number: 1
})
......
......@@ -10,7 +10,7 @@ function Recipe() {
useEffect(() => {
const params = new URLSearchParams({
apiKey: "37299eda2bf644f7a90f8edb1736f7d6",
apiKey: "4ce04e457c8348cfaec8ee0c7100b2f8",
includeNutrition: true
})
......
......@@ -14,7 +14,7 @@ function Results() {
ingredientNames = ingredientNames.slice(0, -1); // remove the last comma
const params = new URLSearchParams({
apiKey: "37299eda2bf644f7a90f8edb1736f7d6",
apiKey: "4ce04e457c8348cfaec8ee0c7100b2f8",
ingredients: ingredientNames
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment