diff --git a/Project/EntityFramework/API/Program.cs b/Project/EntityFramework/API/Program.cs index 3f8be50..43c4df1 100644 --- a/Project/EntityFramework/API/Program.cs +++ b/Project/EntityFramework/API/Program.cs @@ -102,11 +102,10 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); var app = builder.Build(); // Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ + app.UseSwagger(); app.UseSwaggerUI(); -} + app.UseSwaggerUI(c => {