Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Contributes to [this internal issue](dotnet/aspnetcore-internal#4522 (comment)) and is required to be obvious in query results.
  • Loading branch information
Rick-Anderson authored Apr 28, 2024
1 parent a0ccfc8 commit 6bc6c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4-minimal-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Use Swagger to ensure that you have a self-documenting API, where the docs chang
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c =>
app.UseSwaggerUI(c => // UseSwaggerUI Protected by if (env.IsDevelopment())
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
});
Expand Down

0 comments on commit 6bc6c5a

Please sign in to comment.