Update Startup4.cs
parent
1e55ed1f24
commit
411bf44f14
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue