using Microsoft.EntityFrameworkCore; using Nexus.Application.Interfaces; using Nexus.Infrastructure.Persistence; using Nexus.Infrastructure.Services; var builder = WebApplication.CreateBuilder(args); builder.Services.AddDbContext(options => options.UseNpgsql( builder.Configuration.GetConnectionString("DefaultConnection") ) ); builder.Services.AddScoped(); builder.Services.AddControllers(); var app = builder.Build(); app.MapControllers(); app.Run();