You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
507 B
22 lines
507 B
using DbContextLib;
|
|
using HeartTrackAPI;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Logging.AddConsole();
|
|
builder.WebHost.ConfigureKestrel(serverOptions =>
|
|
{
|
|
serverOptions.Limits.MaxRequestBodySize = long.MaxValue;
|
|
});
|
|
|
|
var init = new AppBootstrap(builder.Configuration);
|
|
|
|
init.ConfigureServices(builder.Services);
|
|
|
|
var app = builder.Build();
|
|
|
|
init.Configure(app, app.Environment);
|
|
|
|
app.Services.GetService<HeartTrackContext>().Database.EnsureCreated();
|
|
|
|
app.Run(); |