parent
9d3cea74ef
commit
9cc9deab33
|
@ -26,12 +26,8 @@ namespace TodoApi
|
|||
// Enable middleware to serve generated Swagger as a JSON endpoint.
|
||||
app.UseSwagger();
|
||||
|
||||
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
|
||||
// specifying the Swagger JSON endpoint.
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
|
||||
});
|
||||
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.)
|
||||
app.UseSwaggerUI();
|
||||
|
||||
app.UseRouting();
|
||||
app.UseEndpoints(endpoints =>
|
||||
|
|
Loading…
Reference in New Issue