diff --git a/api/routes/superHeroAPI.js b/api/routes/superHeroAPI.js index 75ef05c..28a264d 100644 --- a/api/routes/superHeroAPI.js +++ b/api/routes/superHeroAPI.js @@ -5,7 +5,7 @@ const router = express.Router(); router.get("/:data", async (req, res) => { await axios({ method: "get", - url: `https://superheroapi.com/api/88fa1b97046d4d9666b719510bbb8257/search/${req.params.data}`, + url: `https://superheroapi.com/api/${process.env.SUPERHERO_API_KEY}/search/${req.params.data}`, }) .then(function (response) { return res.send(response.data); diff --git a/coverage/clover.xml b/coverage/clover.xml index 8446aa0..83e675e 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,6 +1,6 @@ - - + + diff --git a/coverage/lcov-report/api/index.html b/coverage/lcov-report/api/index.html index fba3452..3322f40 100644 --- a/coverage/lcov-report/api/index.html +++ b/coverage/lcov-report/api/index.html @@ -101,7 +101,7 @@

All files api