disable compression
This commit is contained in:
parent
4b4e118013
commit
502fac80df
@ -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(); });
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user