React and Fetch Api; Returning reacts index.html File instead of api endpoint?
My Fetch Api with react is returning index.html instead of its data is there something with react I need to change?
```
fetch()
.then((response) => response.json())
.then((data) => console.log(data))
fetch()
.then((response) => response.text())
.then((data) => console.log(data))
```
fetch()
.then((response) => response.json())
.then((data) => console.log(data))
fetch()
.then((response) => response.text())
.then((data) => console.log(data))
