disable compression

This commit is contained in:
Chika 2020-12-29 13:42:16 +03:00
parent 4b4e118013
commit 502fac80df

View File

@ -21,8 +21,6 @@ namespace EvoCalculator.Core
{
services.AddControllers();
services.AddResponseCompression();
services.AddSwaggerGen();
services.AddApiVersioning(opt =>
@ -40,22 +38,13 @@ namespace EvoCalculator.Core
{
app.UseDeveloperExceptionPage();
}
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Calculation API");
});
app.UseResponseCompression();
// app.UseHttpsRedirection();
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Calculation API"); });
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
}
}