diff --git a/Streetcode/Streetcode.WebApi/Controllers/BaseApiController.cs b/Streetcode/Streetcode.WebApi/Controllers/BaseApiController.cs index 70e64be79..b51430095 100644 --- a/Streetcode/Streetcode.WebApi/Controllers/BaseApiController.cs +++ b/Streetcode/Streetcode.WebApi/Controllers/BaseApiController.cs @@ -46,5 +46,5 @@ protected ActionResult HandleResult(Result result) } return BadRequest(result.Reasons); - } + } } \ No newline at end of file diff --git a/Streetcode/Streetcode.WebApi/Program.cs b/Streetcode/Streetcode.WebApi/Program.cs index 470debe52..86f211c7b 100644 --- a/Streetcode/Streetcode.WebApi/Program.cs +++ b/Streetcode/Streetcode.WebApi/Program.cs @@ -32,7 +32,7 @@ SupportedUICultures = supportedCulture, ApplyCurrentCultureToResponseHeaders = true }); -if (app.Environment.EnvironmentName == "Local") +if (app.Environment.EnvironmentName != "Production") { app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "WebAPIv5 v1"));