using CPATapi.Server.Interfaces; using CPATapi.Server.Repository; var builder = WebApplication.CreateBuilder(args); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddControllers(); var app = builder.Build(); if (app.Environment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseAuthorization(); app.MapControllers(); await app.RunAsync();