Initial import
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace minattest_app_host.OpenApi
|
||||
{
|
||||
public static class OpenApiExtensions
|
||||
{
|
||||
public static void AddSwagger(this IServiceCollection services)
|
||||
{
|
||||
services.AddSwaggerGen();
|
||||
}
|
||||
|
||||
public static void UseAppSwagger(this WebApplication app)
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user