From 2eeda646dfa765c8e35ee5363f29dcfde6ccfe13 Mon Sep 17 00:00:00 2001 From: felixtanhm Date: Mon, 6 May 2024 21:46:33 +0800 Subject: [PATCH] Remove .env file --- .../client/src/components/PokeList.jsx | 7 ++++--- full-stack-javascript/21-inventory-application/server/.env | 0 .../21-inventory-application/server/.gitignore | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 full-stack-javascript/21-inventory-application/server/.env diff --git a/full-stack-javascript/21-inventory-application/client/src/components/PokeList.jsx b/full-stack-javascript/21-inventory-application/client/src/components/PokeList.jsx index d09a668..6672ce2 100644 --- a/full-stack-javascript/21-inventory-application/client/src/components/PokeList.jsx +++ b/full-stack-javascript/21-inventory-application/client/src/components/PokeList.jsx @@ -14,9 +14,10 @@ function PokeList() { const response = await fetch(endpoint); const result = await response.json(); - const response2 = await fetch("http://localhost:3000/pokemon/"); - const result2 = await response2.json(); - console.log(result2); + // const response2 = await fetch("http://localhost:3000/pokemon/"); + // const result2 = await response2.json(); + // console.log("result2"); + // console.log(result2); if (result.results) { const { count, next, previous } = { ...result }; diff --git a/full-stack-javascript/21-inventory-application/server/.env b/full-stack-javascript/21-inventory-application/server/.env deleted file mode 100644 index e69de29..0000000 diff --git a/full-stack-javascript/21-inventory-application/server/.gitignore b/full-stack-javascript/21-inventory-application/server/.gitignore index b512c09..28a76bc 100644 --- a/full-stack-javascript/21-inventory-application/server/.gitignore +++ b/full-stack-javascript/21-inventory-application/server/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +env \ No newline at end of file