diff --git a/backend/api/Program.cs b/backend/api/Program.cs index cf86f561..8f066a79 100644 --- a/backend/api/Program.cs +++ b/backend/api/Program.cs @@ -87,25 +87,21 @@ var app = builder.Build(); -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment() || app.Environment.IsStaging()) -{ - app.UseSwagger(); - app.UseSwaggerUI( - c => - { - c.OAuthClientId(builder.Configuration["AzureAd:ClientId"]); - // The following parameter represents the "audience" of the access token. - c.OAuthAdditionalQueryStringParams( - new Dictionary - { - { "Resource", builder.Configuration["AzureAd:ClientId"] } - } - ); - c.OAuthUsePkce(); - } - ); -} +app.UseSwagger(); +app.UseSwaggerUI( + c => + { + c.OAuthClientId(builder.Configuration["AzureAd:ClientId"]); + // The following parameter represents the "audience" of the access token. + c.OAuthAdditionalQueryStringParams( + new Dictionary + { + { "Resource", builder.Configuration["AzureAd:ClientId"] } + } + ); + c.OAuthUsePkce(); + } +); app.UseCors( corsBuilder =>