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'; import React, { Component } from 'react';
export default class App extends Component { export default class App extends Component {
static displayName = App.name;
constructor(props) { constructor(props) {
super(props); super(props);
@@ -52,7 +51,7 @@ export default class App extends Component {
} }
async populateWeatherData() { async populateWeatherData() {
const response = await fetch('weatherforecast'); const response = await fetch('https://criminalminds-server.azurewebsites.net/weatherforecast');
const data = await response.json(); const data = await response.json();
this.setState({ forecasts: data, loading: false }); this.setState({ forecasts: data, loading: false });
} }
-3
View File
@@ -11,7 +11,4 @@ root.render(
</React.StrictMode> </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(); reportWebVitals();
+3
View File
@@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.2.32602.215 VisualStudioVersion = 17.2.32602.215
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "client", "client\client.esproj", "{8FC072CA-AF79-4930-B9B1-139230DC3426}" Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "client", "client\client.esproj", "{8FC072CA-AF79-4930-B9B1-139230DC3426}"
ProjectSection(ProjectDependencies) = postProject
{1EF6EB3C-FCA0-4FF6-8A99-373AFAC6E4EC} = {1EF6EB3C-FCA0-4FF6-8A99-373AFAC6E4EC}
EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "server", "server\server.csproj", "{1EF6EB3C-FCA0-4FF6-8A99-373AFAC6E4EC}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "server", "server\server.csproj", "{1EF6EB3C-FCA0-4FF6-8A99-373AFAC6E4EC}"
EndProject EndProject
+4 -5
View File
@@ -1,4 +1,4 @@
{ {
"$schema": "https://json.schemastore.org/launchsettings.json", "$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
@@ -11,13 +11,12 @@
"profiles": { "profiles": {
"server": { "server": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger", "launchUrl": "swagger",
"applicationUrl": "https://localhost:7021;http://localhost:5021",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} },
"applicationUrl": "https://localhost:7021;http://localhost:5021",
"dotnetRunMessages": true
}, },
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",