Skip to content

Commit

Permalink
Adjusted names to be able to work on multiple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoruwaTolu committed Apr 9, 2024
1 parent 7a0d10d commit 734b852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prem-data/src/components/HomeQuiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion prem-data/src/components/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 734b852

Please sign in to comment.