Skip to content

Commit

Permalink
Merge branch 'main' into patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored May 9, 2024
2 parents abac6e6 + 38939e0 commit c69fa6c
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 c69fa6c

Please sign in to comment.