update Program.cs

This commit is contained in:
2025-12-09 18:21:05 +01:00
parent 1b4bd523b1
commit 6e2e0f9736

View File

@@ -29,6 +29,9 @@ builder.Services.AddDbContext<LibraryDbContext>();
// On construit l'application en lui donnant vie // On construit l'application en lui donnant vie
WebApplication app = builder.Build(); WebApplication app = builder.Build();
app.UseCors();
app.UseAuthentication() app.UseAuthentication()
.UseAuthorization() .UseAuthorization()
.UseFastEndpoints(options => .UseFastEndpoints(options =>
@@ -40,6 +43,5 @@ app.UseAuthentication()
// app.UseHttpsRedirection(); // app.UseHttpsRedirection();
app.UseCors();
app.Run(); app.Run();