Update Startup4.cs

pull/32450/head
Rick Anderson 2024-04-27 20:02:29 -10:00 committed by GitHub
parent 1e55ed1f24
commit 411bf44f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ namespace TodoApi
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
// specifying the Swagger JSON endpoint.
// Protected by if (env.IsDevelopment())
app.UseSwaggerUI(c =>
app.UseSwaggerUI(c => // UseSwaggerUI is called only in Development.
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
});