refactor(dir): ♻️ change Swagger UI title

This commit is contained in:
Collin Barrett 2024-06-13 16:19:58 -05:00
parent 26c4ed2f8c
commit a0c1724060
2 changed files with 3 additions and 2 deletions

View file

@ -21,8 +21,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.6"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2"/>
</ItemGroup>

View file

@ -44,6 +44,7 @@ internal static void UseSwaggerCustom(this IApplicationBuilder app)
app.UseSwagger();
app.UseSwaggerUI(options =>
{
options.DocumentTitle = "FilterLists API";
options.SwaggerEndpoint("/swagger/v1/swagger.json", "FilterLists Directory API v1");
options.RoutePrefix = string.Empty;
});