Skip to content

Commit

Permalink
Second slash in response
Browse files Browse the repository at this point in the history
  • Loading branch information
alemalvarez committed Apr 2, 2024
1 parent 6533a64 commit 7de1b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function App() {

try {
console.log('Sending POST request to /response');
const response = await fetch('/response', {
const response = await fetch('/response/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -77,7 +77,7 @@ function App() {
const handleGetRequest = async () => {
try {
console.log('Sending GET request to /response');
const response = await fetch('/response');
const response = await fetch('/response/');
console.log('Response received:', response);

const data = await response.json();
Expand Down

0 comments on commit 7de1b9e

Please sign in to comment.