Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
 // Protected by if (env.IsDevelopment())
  • Loading branch information
Rick-Anderson authored Apr 28, 2024
1 parent a0ccfc8 commit 7961918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4-minimal-api/1-complete/PizzaStore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c =>
app.UseSwaggerUI(c => // Protected by if (env.IsDevelopment())
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
});
Expand All @@ -29,4 +29,4 @@
app.MapPut("/pizzas", (Pizza pizza) => PizzaDB.UpdatePizza(pizza));
app.MapDelete("/pizzas/{id}", (int id) => PizzaDB.RemovePizza(id));

app.Run();
app.Run();

0 comments on commit 7961918

Please sign in to comment.