Merge pull request #52 from Rick-Anderson/patch-2

Update Program.cs
This commit is contained in:
James Montemagno 2024-05-08 20:55:33 -07:00 committed by GitHub
commit 38939e01e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ if (app.Environment.IsDevelopment())
{
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");
});