Merge branch 'main' into patch-4

This commit is contained in:
James Montemagno 2024-05-08 20:55:47 -07:00 committed by GitHub
commit c69fa6c3fb
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.UseDeveloperExceptionPage();
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(c => app.UseSwaggerUI(c => // UseSwaggerUI Protected by if (env.IsDevelopment())
{ {
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1"); c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
}); });