using Microsoft.EntityFrameworkCore; using Server; var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllers(); builder.Services.AddDbContextPool(options => { options.UseNpgsql( builder.Configuration.GetConnectionString("SpaceRace"), assembly => assembly.MigrationsAssembly(typeof(SpaceRaceDbContext).Assembly.FullName) ); }); var app = builder.Build(); app.UseHttpsRedirection(); app.UseAuthorization(); app.MapControllers(); app.Run();