Skip to content

Commit

Permalink
Merge pull request #887 from ita-social-projects/fix-add-swagger
Browse files Browse the repository at this point in the history
add swagger for stage and local
  • Loading branch information
Adeodonne authored Nov 28, 2023
2 parents d61ab6f + 503ce75 commit daea670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Streetcode/Streetcode.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit daea670

Please sign in to comment.