Skip to content

Commit 090a287

Browse files
committed
disabled swagger
1 parent a9f438f commit 090a287

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Ecowitt.Controller/Program.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public static async Task Main(string[] args)
8888
builder.Services.AddHostedService<DiscoveryPublishService>();
8989

9090
builder.Services.AddControllers();
91-
builder.Services.AddEndpointsApiExplorer();
92-
builder.Services.AddSwaggerGen();
91+
//builder.Services.AddEndpointsApiExplorer();
92+
//builder.Services.AddSwaggerGen();
9393

9494
var app = builder.Build();
9595
app.UseSerilogRequestLogging(options =>
@@ -108,11 +108,11 @@ public static async Task Main(string[] args)
108108
};
109109
});
110110

111-
if (app.Environment.IsDevelopment())
112-
{
113-
app.UseSwagger();
114-
app.UseSwaggerUI();
115-
}
111+
//if (app.Environment.IsDevelopment())
112+
//{
113+
// app.UseSwagger();
114+
// app.UseSwaggerUI();
115+
//}
116116

117117
app.MapControllers();
118118

0 commit comments

Comments
 (0)