updated fetch url

This commit is contained in:
StevanFreeborn
2022-06-18 18:18:54 -05:00
parent 9efa18a810
commit 8e50d7d6c8
4 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
import React, { Component } from 'react';
export default class App extends Component {
static displayName = App.name;
constructor(props) {
super(props);
@@ -52,7 +51,7 @@ export default class App extends Component {
}
async populateWeatherData() {
const response = await fetch('weatherforecast');
const response = await fetch('https://criminalminds-server.azurewebsites.net/weatherforecast');
const data = await response.json();
this.setState({ forecasts: data, loading: false });
}
-3
View File
@@ -11,7 +11,4 @@ root.render(
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();