From 8e50d7d6c8a979f4146689e65894aec834aa0478 Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Sat, 18 Jun 2022 18:18:54 -0500 Subject: [PATCH] updated fetch url --- client/src/App.js | 3 +-- client/src/index.js | 3 --- criminalmindsapi.sln | 3 +++ server/Properties/launchSettings.json | 11 +++++------ 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 5910bfc..a0f61d0 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -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 }); } diff --git a/client/src/index.js b/client/src/index.js index d563c0f..8d5cddf 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -11,7 +11,4 @@ root.render( ); -// 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(); diff --git a/criminalmindsapi.sln b/criminalmindsapi.sln index 4d7fcc3..4db8ac9 100644 --- a/criminalmindsapi.sln +++ b/criminalmindsapi.sln @@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 VisualStudioVersion = 17.2.32602.215 MinimumVisualStudioVersion = 10.0.40219.1 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 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "server", "server\server.csproj", "{1EF6EB3C-FCA0-4FF6-8A99-373AFAC6E4EC}" EndProject diff --git a/server/Properties/launchSettings.json b/server/Properties/launchSettings.json index 86faad7..d2eb249 100644 --- a/server/Properties/launchSettings.json +++ b/server/Properties/launchSettings.json @@ -1,4 +1,4 @@ -{ +{ "$schema": "https://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, @@ -11,13 +11,12 @@ "profiles": { "server": { "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7021;http://localhost:5021", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "https://localhost:7021;http://localhost:5021", + "dotnetRunMessages": true }, "IIS Express": { "commandName": "IISExpress", @@ -28,4 +27,4 @@ } } } -} +} \ No newline at end of file