use the helper
This commit is contained in:
parent
69e81b9fd4
commit
aabbbc1fea
6 changed files with 13 additions and 18 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using Anthropic.SDK;
|
||||
using Yavsc.Abstract.Interfaces;
|
||||
using Yavsc.Extensions;
|
||||
using Yavsc.Server.Helpers;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
|
|
@ -9,10 +10,7 @@ namespace Yavsc
|
|||
public static async Task Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration
|
||||
.AddJsonFile("appsettings-org.json", optional: false, reloadOnChange: false)
|
||||
.AddJsonFile($"appsettings-org.{builder.Environment.EnvironmentName}.json", optional: false, reloadOnChange: false)
|
||||
.AddEnvironmentVariables();
|
||||
builder.AddConfiguration("org");
|
||||
var app = await builder
|
||||
.ConfigureWebAppServices()
|
||||
.ConfigurePipeline();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue