update package

This commit is contained in:
luoyunchong
2021-09-02 23:28:12 +08:00
parent 66cd518872
commit 1e9fb7d195
52 changed files with 434 additions and 144 deletions

View File

@@ -60,20 +60,20 @@ namespace Knife4jUIDemo
app.UseSwaggerUI(c =>
{
c.RoutePrefix = "swagger"; // serve the UI at root
c.SwaggerEndpoint("/v1/api-docs", "LinCms");
c.SwaggerEndpoint("v1/swagger.json", "My API V1");
//c.SwaggerEndpoint("/v1/api-docs", "LinCms");
});
app.UseKnife4UI(c =>
{
c.RoutePrefix = ""; // serve the UI at root
c.SwaggerEndpoint("/v1/api-docs", "V1 Docs");
c.SwaggerEndpoint("/v1/swagger.json", "V1 Docs");
});
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapSwagger("{documentName}/api-docs");
endpoints.MapSwagger("{documentName}/swagger.json");
});
}
}