Skip to content

Commit

Permalink
Merge pull request #52 from Rick-Anderson/patch-2
Browse files Browse the repository at this point in the history
Update Program.cs
  • Loading branch information
jamesmontemagno authored May 9, 2024
2 parents a0ccfc8 + ddaf5ec commit 38939e0
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 => // UseSwaggerUI 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 38939e0

Please sign in to comment.