Skip to content

Commit

Permalink
#17 Read configurations from file path given from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
caner.demirci committed Jan 12, 2024
1 parent d21a06f commit 5484c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ private static IConfiguration SetUpConfiguration(string[] args, ServiceCollectio
{
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", true)
.AddJsonFile("configs/config.json", true, true)
.AddJsonFile("configs/secret.json", true, true)
.AddCommandLine(args)
.AddEnvironmentVariables()
.Build();
Expand Down

0 comments on commit 5484c23

Please sign in to comment.