Skip to content

Commit

Permalink
Reverted change of MongoDB connection string URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jokwuoma committed Aug 17, 2024
1 parent 755add3 commit c863fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quiz-app/src/Components/Quiz/Quiz.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Quiz = () => {
if (startQuiz) {
try {
// const apiUrl = import.meta.env.VITE_REACT_APP_API_URL || 'http://localhost:3000/api/questions';
const apiUrl = "http://localhost:3000/api/questions" // changed to my DNS, of http://quizapp.pdocommrig.com/api/questions
const apiUrl = "http://quizapp.pdocommrig.com/api/questions" // changed to my DNS, of http://quizapp.pdocommrig.com/api/questions
const response = await fetch(apiUrl);
if (!response.ok) throw new Error("Failed to fetch");
let questions = await response.json();
Expand Down

0 comments on commit c863fa4

Please sign in to comment.