Skip to content

Commit

Permalink
update api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-unfolds committed May 2, 2024
1 parent 56381e3 commit dae4bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {
const [questions, setQuestions] = useState([]);

useEffect(() => {
fetch("http://localhost:3000/api/random")
fetch("http://localhost:3000/api/questions/random")
.then((res) => res.json())
.then(
(data) => {
Expand Down

0 comments on commit dae4bd4

Please sign in to comment.