diff --git a/prem-data/src/components/HomeQuiz.js b/prem-data/src/components/HomeQuiz.js index bc2341f..b406e6b 100644 --- a/prem-data/src/components/HomeQuiz.js +++ b/prem-data/src/components/HomeQuiz.js @@ -8,7 +8,7 @@ export default function HomeQuiz(){ const fetchData = async () => { try{ - const response = await fetch(`http://localhost:3001/blog-posts`); + const response = await fetch(`https://pl-database-1gr2.onrender.com/blog-posts`); const data = await response.json(); setPosts(data); } diff --git a/prem-data/src/components/autocomplete.js b/prem-data/src/components/autocomplete.js index 73816a3..8f3e768 100644 --- a/prem-data/src/components/autocomplete.js +++ b/prem-data/src/components/autocomplete.js @@ -15,7 +15,7 @@ const Autocompletion = ({setPlayer}) => { setIsLoading(true); try{ - const response = await fetch(`http://localhost:3001/searchSuggest`); + const response = await fetch(`https://pl-database-1gr2.onrender.com/searchSuggest`); const data = await response.json(); setOptions(data) }