using AuthRequirementsData.Authorization; using Microsoft.AspNetCore.Authorization; var builder = WebApplication.CreateBuilder(); builder.Services.AddAuthentication().AddJwtBearer(); builder.Services.AddAuthorization(); builder.Services.AddControllers(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); var app = builder.Build(); app.MapControllers(); app.Run();