Skip to content

Commit

Permalink
add swagger for stage and local
Browse files Browse the repository at this point in the history
  • Loading branch information
Adeodonne committed Nov 28, 2023
1 parent cfdc1fb commit 503ce75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ protected ActionResult HandleResult<T>(Result<T> result)
}

return BadRequest(result.Reasons);
}
}
}
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 503ce75

Please sign in to comment.