mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 09:17:47 +00:00
fix api URLs refs
This commit is contained in:
@@ -17,6 +17,7 @@ namespace LiveGameFeed
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
public static string API_URL = string.Empty;
|
||||
public Startup(IHostingEnvironment env)
|
||||
{
|
||||
var builder = new ConfigurationBuilder()
|
||||
@@ -25,6 +26,8 @@ namespace LiveGameFeed
|
||||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
|
||||
.AddEnvironmentVariables();
|
||||
Configuration = builder.Build();
|
||||
|
||||
API_URL = Configuration["apiURL"];
|
||||
}
|
||||
|
||||
public IConfigurationRoot Configuration { get; }
|
||||
|
||||
Reference in New Issue
Block a user