add 验证码demo示例

This commit is contained in:
luoyunchong
2020-09-04 01:37:34 +08:00
parent 35fa68cffc
commit 8a4066a40e
6 changed files with 80 additions and 14 deletions

View File

@ -8,6 +8,7 @@
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.5.1" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="5.5.1" />
</ItemGroup>
<ItemGroup>

View File

@ -99,9 +99,14 @@ namespace Basic
app.UseSwagger(c =>
{
});
app.UseSwaggerUI(c =>
{
c.RoutePrefix = ""; // serve the UI at root
c.SwaggerEndpoint("/v1/api-docs", "V1 Docs");
c.SwaggerEndpoint("/gp/api-docs", "<22><>¼ģ<C2BC><C4A3>");
});
app.UseKnife4UI(c =>
{
//c.RoutePrefix = ""; // serve the UI at root