Files
jsmr/JSMR.Api/Program.cs
Brian Bicknell ab3524ea20
Some checks failed
ci / build-test (push) Has been cancelled
ci / publish-image (push) Has been cancelled
Added docker-compose. Updated startups for API and Web layer.
2026-02-24 00:25:03 -05:00

26 lines
621 B
C#

using JSMR.Api.Startup;
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
ConfigurationManager configuration = builder.Configuration;
IWebHostEnvironment environment = builder.Environment;
builder.Services
.AddAppServices(configuration)
.AddAppJson()
.AddAppOpenApi()
.AddAppAuthentication(environment)
.AddAppCors(configuration);
//.AddAppLogging(builder);
builder.Host.UseAppSerilog();
WebApplication app = builder.Build();
app.UseAppPipeline(app.Environment);
if (app.Environment.IsDevelopment())
await app.SeedDevelopmentAsync();
app.MapAppEndpoints();
app.Run();